Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor 2014
Google is indexing my domain with // ... What to do? Reilly msg:3708978 5:55 am on Jul 28, 2008 (gmt 0) hello,
since yesterday someone who do not know HTML-Basics has set a Link on my Site - and linked with http://www.example.com/folder// - now Googlebot follows this link - and my Linkstructur is relativ - i have only relative links - and Googlebot is indexing now all with // - i do not use Rewrite Rules and i never have Configurate since 5 years my Server - please what can i do - to prevent Googlebot indexing all my Sites with // ... i wanna send a 404 - but how without Rewrite Rules...
Reilly [ edited by: Robert_Charlton at 6:18 am (utc) on July 28, 2008] [edit reason] Use example.com - it can never be owned. [/edit]
tedster msg:3709006 8:03 am on Jul 28, 2008 (gmt 0)
There's a thread in the Apache forum that addresses this - Page Indexed with double // - how to prevent [ webmasterworld.com] Reilly msg:3709072 10:43 am on Jul 28, 2008 (gmt 0)
but i need a solution without rewrite conditions :( and it must return a 404 Error...
edited by: Reilly at 10:54 am (utc) on July 28, 2008] tedster msg:3709500 6:19 pm on Jul 28, 2008 (gmt 0)
I thought that was the issue - but unfortunately this IS a server configuration issue and I don't know of any other way to create a fix. g1smd msg:3709762 9:51 pm on Jul 28, 2008 (gmt 0)
You could prepend a short PHP (or other language) script to the start of all your pages; one that tests the requested URL and responds accordingly.
However, I would much prefer to use
.htaccess for doing this.
At the end of the day, you've discovered yet another reason to avoid using relative URLs; that is the wider issue here.
Reilly msg:3710000 6:30 am on Jul 29, 2008 (gmt 0)
thanks so much tedster and also you g1smd,
i got running mod_rewrite and i fixed the problem - it was hard but i got the clue yesterday evening - thanks so much...
g1smd msg:3710758 1:07 am on Jul 30, 2008 (gmt 0)
You might also want to add redirects for trailing dot and/or trailing quote marks on URLs too.