Forum Moderators: Robert Charlton & goodroi
[subdomain.domain.com...]
But googlebot is adding a slash:
[subdomain.domain.com...]
I've added this rewrite rule:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . [subdomain.domain.com%1...] [R=301,L]
And at least for most cases it seems to be redirecting. However, I notice some googlebot requests have the double slash URL then request the single slash. But other googlebot requests don't make the second request. Whenever I try it manually it always makes the second request.
I can't find where this // is coming from. I am using a 301 redirect on this site's former location (I moved it last night). I didn't have a folder slash there, but tried adding one after reading here today. It looks like this now:
Redirect 301 /folder/
[subdomain.domain.com...]
I didn't notice any difference with or without those trailing slashes.
Questions:
1. Is this rewrite rule sufficient? Will google penalize me at all for all these 301s?
2. Is there any way to find the offender/offending file? This site was previously disallowed from google in its old location, so this is all new content for google. I've grepped looking for the double slash on my site, but haven't found one.
Thanks for any help!
You ask will Google penalize for the many 301's? Not likely, IMO. Have you tried running Xenu Link Sleuth on the site? It's a good tool for finding link troubles.