htaccess nur für Google/fireball aktiv?
Verfasst: 09.02.2004 23:50
hi,
ich habe eine htaccess datei im root die,die urls im forum etwas abändert, ich möchte aber das dies nur geschieht wenn google/fireball das Forum besucht nicht aber für normale User (sowohl für Gäste als auch Reg.) ist das irgendwie machbar?
So ist die htaccess aufgebaut:
Bin für jeden tip dankabar!
Grüße KoSSo
ich habe eine htaccess datei im root die,die urls im forum etwas abändert, ich möchte aber das dies nur geschieht wenn google/fireball das Forum besucht nicht aber für normale User (sowohl für Gäste als auch Reg.) ist das irgendwie machbar?
So ist die htaccess aufgebaut:
Code: Alles auswählen
#Turn on Rewrite engine
RewriteEngine on
# 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]*),([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
RewriteCond %{REQUEST_URI} ^/lhtopic,([0-9]*),([0-9]*),([0-9]*),([a-zA-Z0-9]*),([a-zA-Z0-9?]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&start=%2&&postdays=%3&postorder=%4&highligth=%5 [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]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&highlight=%2 [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]
# View Topic -- normal
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]
#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-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&sid=%2 [L]
RewriteCond %{REQUEST_URI} ^/forum,([0-9]*),([0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewforum.php?f=%1&start=%2&sid=%3 [L]
RewriteCond %{REQUEST_URI} ^/pforum,([0-9]*),([0-9]*),([0-9]*),([a-zA-Z0-9]*).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-zA-Z0-9]*).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-zA-Z0-9?]*).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]*),([0-9]*),([a-zA-Z0-9]*),([a-zA-Z0-9?]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&start=%2&&postdays=%3&postorder=%4&highligth=%5&sid=%6 [L]
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/stopic,([0-9]*),([0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?p=%1&sid=%2\#%3 [L]
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/htopic,([0-9]*),([a-zA-Z0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&highlight=%2&sid=%3 [L]
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/vtopic,([0-9]*),([a-zA-Z0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&view=%2&sid=%3 [L]
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/ptopic,([0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?p=%1&sid=%2\#%3 [L]
# View Topic -- normal
RewriteCond %{REQUEST_URI} ^/topic,([0-9]*),([a-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&sid=%2 [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-zA-Z0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1&postdays=%2&postorder=%3&vote=%4&sid=%4 [L]Grüße KoSSo