want to rewrite urls like site.com/software to wp-content/themes/dir/software.php and something is not working.. Here’s what I have:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^software wp-content/themes/dir/software.php [L]
Thanks!
Rewrite rules are processed in the order that they are encountered. In this case, every request is getting pushed to
index.phpbefore yoursoftwarerule is encountered (assuming thatsoftwaredoesn’t exist in the system as a directory or file). The[L]on the end of the first rule tells Apache to stop reading rules, so it doesn’t even bother processing the next one.Try this: