Forum Moderators: phranque
Here's what he has in his .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
When I remove any of this, the simple links to posts on his site no longer work.. he's using wordpress 2.7 as cms.
Any ideas?
All it does is rewrite any request for any non-blank URL-path to WordPress, as long as that URL-path does not resolve to a physically-existing file or directory. So if you have a "real" file named "blah.html" then a request for example.com/blah.html won't go to WordPress, but will get that real file instead. If the file does not exist, then the request is passed to WordPress, and WP takes care of deciding if any content can be served for that requested URL.
Check that the entries in sitemap.xml correspond exactly to the canonical domain and URLs on the site -- No "www versus non-www" or casing discrepancies should be allowed. Also, beware that WMT reports can be quite stale; Allow several weeks for your changes to be reflected in those reports, especially if this site isn't completely crawled on a weekly or daily basis.
Also check the robots.txt file and make sure its structure and syntax are 100% correct. If there isn't a robots.txt file, then that request too will be passed to WordPress...
Also be aware that some hosts may block search engine spiders at the firewall, either due to what they deem to be excessive crawling, or simply due to an error.
Jim