Welcome to WebmasterWorld Guest from 23.20.147.6

Forum Moderators: 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)

Preferred Member

10+ Year Member

joined:Jan 11, 2005
posts:513
votes: 0


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 Sept 26, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:May 24, 2006
posts:45
votes: 0


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 Sept 26, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 11, 2005
posts:513
votes: 0


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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members