Seite 1 von 1

Short-Url Mod - Google setzt doppelten Slash in URL

Verfasst: 08.01.2006 14:06
von bbill
Hallo,

ich habe ein kleines Problem mit meinem Forum (2.0.19), was "Short Url." und Google angeht. Muss dabei sagen, dass es sich um eine der frühen Short-Url Versionen handelt. Ich möchte bzw. kann diese jedoch mangels Kenntnis nicht gegen eine neue ersetzen, da mir ein Versuch mit dieser Short-Url Version über 6 Tage über 21.000 404er Fehler ausgegeben hat.

Zur Sache: Google (und nur Google) scant vereinzelte Forenseiten, zum Glück nicht alle, nach diesem Muster:
http://www.example.com//phpbb2/ptopic,3917.html
Man beachte den doppelten Slash. MSN, Slurf etc. bringen solche Aktionen nicht.

Der eingesetzte Code (.htaccess im Forenverzeichnis)

Code: Alles auswählen

RewriteEngine on
php_flag session.use_trans_sid 0
# View Category
RewriteCond %{REQUEST_URI} ^/forum/vcat,([0-9]*).htm*
RewriteRule ^(.*) /forum/index.php?c=%1  [L]
#
# View Forum
RewriteCond %{REQUEST_URI} ^/forum/forum,([0-9]*).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1  [L]
RewriteCond %{REQUEST_URI} ^/forum/forum,([0-9]*),-(.*).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1  [L]
RewriteCond %{REQUEST_URI} ^/forum/forum,([0-9]*),([0-9]*).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1&start=%2  [L]
RewriteCond %{REQUEST_URI} ^/forum/forum,([0-9]*),([0-9]*),-(.*).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1&start=%2  [L]
#
RewriteCond %{REQUEST_URI} ^/forum/pforum,([0-9]*),([0-9]*),([0-9]*).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1&topicdays=%2&start=%3  [L]
#
# View Forum
RewriteCond %{REQUEST_URI} ^/forum/mforum,([0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1&mark=%2  [L]
#
# View Topic -- after first page
RewriteCond %{REQUEST_URI} ^/forum/ltopic,([0-9]*),([0-9]*),([a-zA-Z0-9]*),([0-9]*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&postdays=%2&postorder=%3&start=%4  [L]
#
# View Topic -- after first page
RewriteCond %{REQUEST_URI} ^/forum/lhtopic,([0-9]*),([0-9]*),([a-z]*),(.*),([0-9?]*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&postdays=%2&postorder=%3&highlight=%4&start=%5  [L]
RewriteCond %{REQUEST_URI} ^/forum/lhtopic,([0-9]*),([0-9?]*),([0-9]*),([a-z]*),(.*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&postdays=%3&postorder=%4&highlight=%5&start=%2  [L]
#
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/forum/stopic,([0-9]*),([0-9]*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?p=%1\#%2  [L]
#
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/forum/htopic,([0-9]*),([^,]*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&highlight=%2  [L]
RewriteCond %{REQUEST_URI} ^/forum/htopic,([0-9]*),([0-9]*),([^,]*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&start=%2&highlight=%3  [L]
#
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/forum/vtopic,([0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&view=%2  [L]
#
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/forum/ptopic,([0-9]*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?p=%1\#%2  [L]
RewriteCond %{REQUEST_URI} ^/forum/ptopic,([0-9]*),([^,]*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?p=%1&highlight=%2\#%3  [L]
#
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/forum/topic,([0-9]*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1  [L]
RewriteCond %{REQUEST_URI} ^/forum/topic,([0-9]*),-(.*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1  [L]
RewriteCond %{REQUEST_URI} ^/forum/topic,([0-9]*),([0-9]*),-(.*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&start=%2  [L]
RewriteCond %{REQUEST_URI} ^/forum/topic,([0-9]*),([0-9]*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&start=%2  [L]
#
#vote result
RewriteCond %{REQUEST_URI} ^/forum/utopic,([0-9]*),([0-9]*),([a-zA-Z0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&postdays=%2&postorder=%3&vote=%4  [L]
#
#with session
#############
#
# View Forum
RewriteCond %{REQUEST_URI} ^/forum/forum,([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1&sid=%2  [L]
RewriteCond %{REQUEST_URI} ^/forum/forum,([0-9]*),([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1&start=%2&sid=%3  [L]
RewriteCond %{REQUEST_URI} ^/forum/forum,([0-9]*),([a-fA-F0-9]{32}),-(.*).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1&sid=%2  [L]
RewriteCond %{REQUEST_URI} ^/forum/forum,([0-9]*),([0-9]*),([a-fA-F0-9]{32}),-(.*).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1&start=%2&sid=%3  [L]
#
RewriteCond %{REQUEST_URI} ^/forum/pforum,([0-9]*),([0-9]*),([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1&topicdays=%2&start=%3&sid=%4  [L]
#
# View Forum
RewriteCond %{REQUEST_URI} ^/forum/mforum,([0-9]*),([a-zA-Z0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewforum.php?f=%1&mark=%2&sid=%3  [L]
#
# View Topic -- after first page
RewriteCond %{REQUEST_URI} ^/forum/ltopic,([0-9]*),([0-9]*),([a-zA-Z0-9]*),([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&postdays=%2&postorder=%3&start=%4&sid=%5  [L]
#
# View Topic -- after first page
RewriteCond %{REQUEST_URI} ^/forum/lhtopic,([0-9]*),([0-9]*),([a-z]*),([^,]*),([0-9?]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&postdays=%2&postorder=%3&highlight=%4&start=%5&sid=%6  [L]
RewriteCond %{REQUEST_URI} ^/forum/lhtopic,([0-9]*),([0-9?]*),([0-9]*),([a-z]*),([^,]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&postdays=%3&postorder=%4&highlight=%5&start=%2&sid=%6  [L]
#
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/forum/stopic,([0-9]*),([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?p=%1&sid=%2\#%3  [L]
#
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/forum/htopic,([0-9]*),([^,]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&highlight=%2&sid=%3  [L]
RewriteCond %{REQUEST_URI} ^/forum/htopic,([0-9]*),([0-9]*),([^,]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&start=%2&highlight=%3&sid=%4  [L]
#
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/forum/vtopic,([0-9]*),([a-zA-Z0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&view=%2&sid=%3  [L]
#
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/forum/ptopic,([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?p=%1&sid=%2\#%3  [L]
RewriteCond %{REQUEST_URI} ^/forum/ptopic,([0-9]*),([^,]*),([[a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?p=%1&highlight=%2&sid=%3\#%4  [L]
#
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/forum/topic,([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&sid=%2  [L]
RewriteCond %{REQUEST_URI} ^/forum/topic,([0-9]*),([a-fA-F0-9]{32}),-(.*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&sid=%2  [L]
RewriteCond %{REQUEST_URI} ^/forum/topic,([0-9]*),([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&start=%2&sid=%3  [L]
RewriteCond %{REQUEST_URI} ^/forum/topic,([0-9]*),([0-9]*),([a-zA-Z0-9]*),-(.*).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&start=%2&sid=%3  [L]
#
#vote result
RewriteCond %{REQUEST_URI} ^/forum/utopic,([0-9]*),([0-9]*),([a-zA-Z0-9]*),([a-zA-Z0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /forum/viewtopic.php?t=%1&postdays=%2&postorder=%3&vote=%4&sid=%4  [L]

Irgendwas muss dort für den Doppelslash verantwortlich sein. Habe selbst die letzten drei Tage intensiv versucht das Ding in Griff zu bekommen, leider ohne Erfolg.

Wer kann mir weiterhelfen?

LG
bbill

Verfasst: 08.01.2006 15:26
von rabbit
1. das ist *nicht* die version von larsneo. ;)

2. verlinke mal deine page_header.php als .txt datei hier (KB:datei).

Verfasst: 08.01.2006 16:05
von bbill
1) hm, hab ich auch nicht behauptet ;)
2) Guckst du hier. <edit>.

Verfasst: 08.01.2006 21:13
von bbill
Hat sich erledigt. Thread kann geschlossen werden.