Forum Moderators: phranque
Basically my site appears to have developed a problem that’s starting to cost me quite dearly.
Assuming the site is in the folder example.com/Bog I am suddenly finding that I’m getting pages not found by Google’s Adsense bot which is looking for pages starting example.com/blog (note the lower case ‘b’) for some reason, and is therefore starting to cost me.
I have noticed on there sites with the same structure will take example.com/blog and redirect to example.com/Blog but mine simply gives a 404 error.
How on earth can I fix this so that Google’s Adsense bot (or another other bot for that matter), when going to example.com/blog is directed straight to example.com/Blog so it can ‘re-find’ the pages?
I have no idea why this started happening this week as my sitemap and everything is and has always been /Blg and not /blog but this is now occurring and its causing me major issues.
Your help would be very, very much appreciated.
RewriteRule blog(.*) http://www.domain.com/Blog$1 [R=301,L]
Proceed with extreme caution. Modifying the server settings can cause many unintended consequences.
Test with a very large selection of expected and unexpected test URLs, and do use a HTTP Headers Viewer to really see what is going on.
Finally, I always use all lower-case for all URLs purely to avoid all problems with URL casing.