apache - Simple Mod Rewrite .htaccess solution needed -
why can't 2 rewrite rules work , how fix?
i'm trying wwww.mydomain.com/wordpress wwww.mydomain.com/pages/wordpress.php
rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] rewriterule ^([a-z]+)(.*)$ /pages/$1.php [qsa,l]
thanks,
you want new rule before of wordpress rules:
rewriteengine on rewritebase / rewriterule ^([a-z]+)(.*)$ /pages/$1.php [qsa,l] rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l]
the wordpress rule routes everything index.php, including whatever you're trying match.
Comments
Post a Comment