Seite 1 von 1

habe MOD_rewrite, aber welchen ???

Verfasst: 22.04.2005 18:03
von vsitor
hallo ihr lieben,

ich habe vor ca einem halben jahr ein mod_rewrite änderung an meinem phpbb vorgenommen. funktioniert auch prima, allerdings habe ich jetzt mit einem online-tool
(link check auf http://www.witch-webtools.de/index.php#04) meine website checken lassen.
das resultat war, das er superviele broken links angezeigt hat.
ich bin dem auf dem grund gegangen und fand heraus, das zb auf ein topic verwiesen wurde, wo der pfad lokal war,
also http://ptopic,3name-des-topics.htm anstatt http://www.meineseite.de/ptopic,3name-des-topics.htm

das geht natürlich nicht, weil die suchmaschinen broken links bestrafen, deshalb suche ich verzweifelt nach einer lösung, die pfade absolut schreiben zu lassen.
ich poste mal die .HTACCES hier, vielleicht weiss ja einer von euch rat

danke

Code: Alles auswählen

#Turn on Rewrite engine
RewriteEngine on


#The next lines check for Email Spammers Robots and redirect them to a fake page
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon   [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf     [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro  [OR]
RewriteCond %{HTTP_USER_AGENT} ^CherryPicker  [OR]
RewriteCond %{HTTP_USER_AGENT} ^NICErsPRO     [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailCollector
RewriteRule ^.*$ emailsforyou.php  [L]

###
###
# View Category
RewriteCond %{REQUEST_URI} ^/vcat,([0-9]*).htm*
RewriteRule ^(.*) /index.php?c=%1  [L]

# View Forum
RewriteCond %{REQUEST_URI} ^/forum,([0-9]*).htm*
RewriteRule ^(.*) /viewforum.php?f=%1  [L]
RewriteCond %{REQUEST_URI} ^/forum,([0-9]*),-(.*).htm*
RewriteRule ^(.*) /viewforum.php?f=%1  [L]
RewriteCond %{REQUEST_URI} ^/forum,([0-9]*),([0-9]*).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&start=%2  [L]
RewriteCond %{REQUEST_URI} ^/forum,([0-9]*),([0-9]*),-(.*).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&start=%2  [L]

RewriteCond %{REQUEST_URI} ^/pforum,([0-9]*),([0-9]*),([0-9]*).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&topicdays=%2&start=%3  [L]

# View Forum
RewriteCond %{REQUEST_URI} ^/mforum,([0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&mark=%2  [L]

# View Topic -- after first page
RewriteCond %{REQUEST_URI} ^/ltopic,([0-9]*),([0-9]*),([a-zA-Z0-9]*),([0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&postdays=%2&postorder=%3&start=%4  [L]


# View Topic -- after first page
#lhtopic,426,0,asc,%FCber%2A,0.html #viewtopic.php?t=426&postdays=0&postorder=asc&highlight=%FCber%2A&start=15
#lhtopic,426,0,0,asc,%FCber%2A.html #viewtopic.php?t=426&start=0&postdays=0&postorder=asc&highlight=%FCber%2A
RewriteCond %{REQUEST_URI} ^/lhtopic,([0-9]*),([0-9]*),([a-z]*),(.*),([0-9?]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&postdays=%2&postorder=%3&highlight=%4&start=%5  [L]
RewriteCond %{REQUEST_URI} ^/lhtopic,([0-9]*),([0-9?]*),([0-9]*),([a-z]*),(.*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&postdays=%3&postorder=%4&highlight=%5&start=%2  [L]


# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/stopic,([0-9]*),([0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?p=%1\#%2  [L]

# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/htopic,([0-9]*),([^,]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&highlight=%2  [L]
RewriteCond %{REQUEST_URI} ^/htopic,([0-9]*),([0-9]*),([^,]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&start=%2&highlight=%3  [L]

# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/vtopic,([0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&view=%2  [L]

# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/ptopic,([0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?p=%1\#%2  [L]
RewriteCond %{REQUEST_URI} ^/ptopic,([0-9]*),([^,]*).htm*
RewriteRule ^(.*) /viewtopic.php?p=%1&highlight=%2\#%3  [L]

# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/topic,([0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1  [L]
RewriteCond %{REQUEST_URI} ^/topic,([0-9]*),-(.*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1  [L]
RewriteCond %{REQUEST_URI} ^/topic,([0-9]*),([0-9]*),-(.*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&start=%2  [L]
RewriteCond %{REQUEST_URI} ^/topic,([0-9]*),([0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&start=%2  [L]

#vote result
RewriteCond %{REQUEST_URI} ^/utopic,([0-9]*),([0-9]*),([a-zA-Z0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&postdays=%2&postorder=%3&vote=%4  [L]

#with session
#############

# View Forum
RewriteCond %{REQUEST_URI} ^/forum,([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&sid=%2  [L]
RewriteCond %{REQUEST_URI} ^/forum,([0-9]*),([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&start=%2&sid=%3  [L]
RewriteCond %{REQUEST_URI} ^/forum,([0-9]*),([a-fA-F0-9]{32}),-(.*).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&sid=%2  [L]
RewriteCond %{REQUEST_URI} ^/forum,([0-9]*),([0-9]*),([a-fA-F0-9]{32}),-(.*).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&start=%2&sid=%3  [L]


RewriteCond %{REQUEST_URI} ^/pforum,([0-9]*),([0-9]*),([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&topicdays=%2&start=%3&sid=%4  [L]

# View Forum
RewriteCond %{REQUEST_URI} ^/mforum,([0-9]*),([a-zA-Z0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&mark=%2&sid=%3  [L]

# View Topic -- after first page
RewriteCond %{REQUEST_URI} ^/ltopic,([0-9]*),([0-9]*),([a-zA-Z0-9]*),([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&postdays=%2&postorder=%3&start=%4&sid=%5  [L]

# View Topic -- after first page
RewriteCond %{REQUEST_URI} ^/lhtopic,([0-9]*),([0-9]*),([a-z]*),([^,]*),([0-9?]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&postdays=%2&postorder=%3&highlight=%4&start=%5&sid=%6  [L]
RewriteCond %{REQUEST_URI} ^/lhtopic,([0-9]*),([0-9?]*),([0-9]*),([a-z]*),([^,]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&postdays=%3&postorder=%4&highlight=%5&start=%2&sid=%6  [L]

# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/stopic,([0-9]*),([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?p=%1&sid=%2\#%3  [L]


# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/htopic,([0-9]*),([^,]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&highlight=%2&sid=%3  [L]
RewriteCond %{REQUEST_URI} ^/htopic,([0-9]*),([0-9]*),([^,]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&start=%2&highlight=%3&sid=%4  [L]

# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/vtopic,([0-9]*),([a-zA-Z0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&view=%2&sid=%3  [L]

# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/ptopic,([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?p=%1&sid=%2\#%3  [L]
RewriteCond %{REQUEST_URI} ^/ptopic,([0-9]*),([^,]*),([[a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?p=%1&highlight=%2&sid=%3\#%4  [L]


# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/topic,([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&sid=%2  [L]
RewriteCond %{REQUEST_URI} ^/topic,([0-9]*),([a-fA-F0-9]{32}),-(.*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&sid=%2  [L]
RewriteCond %{REQUEST_URI} ^/topic,([0-9]*),([0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&start=%2&sid=%3  [L]
RewriteCond %{REQUEST_URI} ^/topic,([0-9]*),([0-9]*),([a-zA-Z0-9]*),-(.*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&start=%2&sid=%3  [L]


#vote result
RewriteCond %{REQUEST_URI} ^/utopic,([0-9]*),([0-9]*),([a-zA-Z0-9]*),([a-zA-Z0-9]*),([a-fA-F0-9]{32}).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&postdays=%2&postorder=%3&vote=%4&sid=%4  [L]