I have got a wordpress installation within the root folder of the site, and it is working all right. I should also give a completely seperate file - refer to it as whatever.php - to the net root too. It's nothing related to wordpress, but how a htaccess file is setup, it's attempting to convert the hyperlink to some publish page that does not exist.

How do i write the best within the htaccess file which will allow me to connect to my whatever.php script, and keep anything else being employed as a default?

If you work with the generic htaccess file (above), you should not have problem, because the line RewriteCond %{REQUEST_FILENAME} !-f set the problem the request url (%{REQUEST_FILENAME}) isn't a file (!-f) around the rewrite rule.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

If you work with the car produced file, you can include that condition towards the chain rule definition.

More information:



Shoud get it done :

RewriteEngine on

RewriteRule ^whatever$  whatever.php  [QSA,L]