Custom RewriteRules not working when using WP permalinks
-
Hey guys,
When I have permalink structure off, my custom RewriteRules in .htaccess work fine. But when I turn it on (to one of the standard by date and postname ones), I can’t seem to get my custom rules to work, even though the WP ones do. I’ve tried turning verbose mode on, no effect, and adding the rules to the function mod_rewrite_rules in classes.php doesn’t work. I’ve also tried adding the rules after the #BEGIN and #END WordPress bits in .htaccess, but still to no effect.
Nothing is working, and it’s driving me crazy! Does anyone have any ideas that could help me?
Thanks for your help.
Regards,
Weiran.
P.S. Heres my .htaccess file so you can see what I’ve got:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^kubrick/?$ /index.php?page_id=110 [QSA,L]
RewriteRule ^k2/?$ /index.php?page_id=126 [QSA,L]
RewriteRule ^(articles|digressions)/(.*)/?$ /index.php?name=$2 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
- The topic ‘Custom RewriteRules not working when using WP permalinks’ is closed to new replies.