I’ve got a wordpress installation in the root folder of a site, and it’s working just fine. I also want to add a completely seperate file – call it whatever.php – to the web root as well. It has nothing to do with wordpress, but the way the htaccess file is setup, it’s trying to convert the link to a post page that doesn’t exist.
How can i write an exception in the htaccess file that will let me link to my whatever.php script, while keeping everything else working as a default?
If you are using the generic htaccess file (above), you shouldn’t have any problem, since the line
RewriteCond %{REQUEST_FILENAME} !-fset the condition that the request url (%{REQUEST_FILENAME}) is not a file (!-f) on the rewrite rule.If you are using the auto generated file, you can add that condition to the chain rule definition.
More info:
http://codex.wordpress.org/Using_Permalinks
http://httpd.apache.org/docs/current/mod/mod_rewrite.html