.htaccess - mcafee siteadvisor.com

If you have a similiar problem to the one listed in this forum:
http://community.mcafee.com/showthread.php?t=215815

It says “File Not Found 404″ or something similiar, if you’re running wordpress, drupal or some content management system which has “pretty urls”, it means every request is being rewritten using htaccess rules, that’s where the problem comes in, without going into gory details, just exclude it.

Open your HTACCESS file (if you have one), and look for something like this:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !^/devfiles
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

This is what’s causing you the headache.

Now Copy the URL in the Mcafee e-mail, it will look something like this:
http://mywebsite.com/mywebsite.comc34928713ceba2140cdc0a08214dbe9a4ff91a24.html

The filename you’re supposed to create is like this, just with your own DOMAIN NAME and CODE:
mywebsite.comc34928713ceba2140cdc0a08214dbe9a4ff91a24.html

To make the site verify you need to add an exclusion rule to your htaccess, so it ignores the request, rather than piping it through to an index file (which is usually in public_html or www or the root of your ftp folder):

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !^/devfiles
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteRule ^/mywebsite\.com06dc46cb35f29b6e40fd949e6693df525d9ee34c\.html$ - [L]

What I’ve done is put the bits you need to make match with your own website in bold.

Share and Enjoy:
  • Print this article!
  • E-mail this story to a friend!
  • Google
  • Digg
  • Facebook
  • del.icio.us
  • Mixx
  • Live
  • NewsVine
  • Slashdot
  • Technorati
  • Ma.gnolia

Leave a Reply