The problem might be with McAffee. I just checked a couple of pages with a header checker and WordPress is generating a proper status code 404.
http://web-sniffer.net/
Is there a specific page that McAffee says is generating the wrong status code? There could be a conflict with certain pages.
It looks like there may be both old and new WordPress code in the .htaccess, plus a 301 redirect that is no longer necessary. WordPress generates its own 301 and 404 status codes for most pages.
It also looks like there is a missing closing conditional tag for checking to see if mod_security is active. I'm not sure why that is in there.
You no longer need the code to add the training slash to wp-admin
Let's try stripping it down a bit. Try replacing the .htaccess with this and see what happens. Keep a copy of the old .htaccess just in case something else doesn't work correctly.
Code:
RewriteEngine On
RewriteBase /
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
You can have it fast, good or cheap. Pick any two.
Bookmarks