Welcome to WebmasterWorld Guest from

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

URL path to forum has two slashes

And Googlebot is crawling them



3:12 am on Sep 26, 2006 (gmt 0)

10+ Year Member

I have no idea how this happened, but the path to a typical page on my forum is:

http:/ /mydomain.com/forum/index.php?

And Googlebot is crawling URLs that look like this:

http:/ /mydomain.com/forum//index.php?

And my server is giving a 200 OK code for both URLs. I think this might be causing duplicate penalties but I have no idea why my server isn't returning an error. Do I fix this with htaccess?

Edit to add: I did find a slash at the end of the Board URL setup in the admin panel, and removed it. This may remove the double slash from this point forward, but now I need to stop Googlebot from doing it.

[edited by: AndyA at 3:16 am (utc) on Sep. 26, 2006]


7:26 am on Sep 26, 2006 (gmt 0)

5+ Year Member

Actually there is no duplicate content inside the same domain name. In this situation Google will index only one url.

You can check your code or do 301 redirection from:

http:/ /mydomain.com/forum//index.php? to

http:/ /mydomain.com/forum/index.php?

in .htaccess


11:49 am on Sep 26, 2006 (gmt 0)

10+ Year Member

Wouldn't that code only work for the /index.php page? I've got thousands of pages in my forum, many of which Google is crawling.

I found this code in another thread here at WebmasterWorld:

RewriteCond %{REQUEST_URI} ^(.*)//+(.*)
RewriteRule .* /%1/$2 [R=301,L]

It's supposed to remove the double slashes from deeper folders, but doesn't seem to work on my site.


Featured Threads

Hot Threads This Week

Hot Threads This Month