(Complex?) .htaccess problem
-
To say it right at the beginning. I have searched the forums for hours, checked several mod_rewrite tutorials and still didn’t find an answer.
I just upgraded from 1.5 to 2.0.4 and so far every category, page, post works fine
BUT
my redirect rules for my brand, slogans and ad pages do not work anymore.
My rules were:
RewriteRule ^brands/([0-9]+)/([A-Z]) /brands/?b=$1&l=$2
RewriteRule ^brands/([A-Z])$ /brands/?l=$1
RewriteRule ^brands/([a-z-A-Z]+) /brands/?in=$1
RewriteRule ^ads/([0-9]+)/([0-9]+) /ads/?ad=$1&b=$2
RewriteRule ^ads/([A-Z])$ /ads/?l=$1
RewriteRule ^ads/([0-9]+) /ads/?b=$1
RewriteRule ^ads/([a-z-A-Z]+) /ads/?in=$1
RewriteRule ^slogans/([A-Z])$ /slogans/?l=$1
RewriteRule ^slogans/([a-z-A-Z]+) /slogans/?in=$1When I insert this after the wordpress rules in the 2.0.4 version, it doesn’t work.
Somehow WordPress always redirects it to index.php!?
One rule like the one below in combination with wordpress standard rules work well. The other things don’t anymore.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /RewriteRule ^brands/([0-9]+) /brands/?b=$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressIt works on my 1.5 installation here: https://www.brandinfection.com
Please, please help me as this is the last problem till I can relaunch with the new version and cool features ??
- The topic ‘(Complex?) .htaccess problem’ is closed to new replies.