.htaccess - Wordpress Permalinks does not redirect links in my new theme -


i hope can me. i'm using /%postname%/ permalink structure, , .htaccess this:

<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> 

in default theme working fine in theme need use, default link '?p=123' not redirect 'post name' link, , both links working @ same time, i'm not sure should do! please me. all

please try flush rewrite rules.

/* flush rewrite rules custom post types. */ add_action( 'after_switch_theme', 'bt_flush_rewrite_rules' );  /* flush rewrite rules */ function bt_flush_rewrite_rules() {      flush_rewrite_rules(); } 

if doesn't work, means there function prevent redirection on theme.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -