My site is set up with htaccess directing all pages from html to php as below:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^website.com
RewriteRule (.*) http://www.website.com/$1 [R=301,L]
RewriteRule ^(.+)\.html$ http://www.website.com/$1.php [R=301,L]
I am trying to set up Yahoo Site Explorer and to verify my account I need to either add a meta tag or add a html file to my website root folder. Yahoo is refusing to recognize my meta tag (I am sure I have added it correctly)! So my only option is to add the html file.
My html file keeps getting redirected to php and it seems yahoo cannot find it.
Is there something I can add to my htaccess file so that all files are redirected to php apart from the one file yahoo needs to see?
Try adding this condition:
This should allow any files that actually exist (there are other options for other types of files). This assumes it wouldn’t mess up anything else for other files that already exist.