Seite 1 von 1

Umzug in Unterverzeichnis

Verfasst: 27.08.2009 09:38
von Meralus
Hallo,

ich habe mei Forum umgezogen von http://www.trekking-portal.com/ auf http://www.trekking-portal.com/forum/. Danach habe ich natürlich den Pfad im Adminmenü geändert auf "/forum/" und meine .htaccess geändert. Diese sieht nun so aus:

Code: Alles auswählen

RewriteEngine On 
RewriteBase /forum/

# prevent access from santy webworm a-e 
RewriteCond %{QUERY_STRING} ^(.*)highlight=\%2527 [OR] 
RewriteCond %{QUERY_STRING} ^(.*)rush=\%65\%63\%68 [OR] 
RewriteCond %{QUERY_STRING} ^(.*)rush=echo [OR] 
RewriteCond %{QUERY_STRING} ^(.*)wget\%20 [OR] 
RewriteCond %{QUERY_STRING} ^(.*)cmd= 
RewriteRule .* http://127.0.0.1/ [R,L] 

# prevent pre php 4.3.10 bug 
RewriteCond %{HTTP_COOKIE}% s:(.*):\%22test1\%22\%3b 
RewriteRule .* http://127.0.0.1/ [R,L] 

# prevent perl user agent (most often used by santy) 
RewriteCond %{HTTP_USER_AGENT} ^lwp.* [NC] 
RewriteRule .* http://127.0.0.1/ [R,L] 

# example.com/fasel/index.bla -> example.com/fasel/ 
RewriteCond %{THE_REQUEST} ^[A-Z]+\s+(.*/)(index|forums)\.[a-z]+\s+HTTP/1\.\d+$ 
RewriteRule .* %1 [R=301] 

# extended rewriting only for .html [thx to Caterham] 
RewriteRule !\.html$ - [L] 

# Short URL implementation [larsneo] 
RewriteRule ^/forum/index-mark\.html$ index.php?mark=forums [L] 

RewriteRule ^/forum/category([0-9]+)\.html$ index.php?c=$1 [L] 

RewriteRule ^/forum/forum([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewforum.php?f=$1&topicdays=$2&start=$3 [L] 
RewriteRule ^/forum/forum([0-9]+)-s([0-9]+)\.html$ viewforum.php?f=$1&start=$2 [L] 
RewriteRule ^/forum/forum([0-9]+)\.html$ viewforum.php?f=$1 [L] 
RewriteRule ^/forum/forum([0-9]+)-mark\.html$ viewforum.php?f=$1&mark=topics [L] 

RewriteRule ^/forum/ptopic([0-9]+)\.html$ viewtopic.php?t=$1&view=previous [L] 
RewriteRule ^/forum/ntopic([0-9]+)\.html$ viewtopic.php?t=$1&view=next [L] 

RewriteRule ^/forum/ftopic([0-9]+)-([0-9]+)-([a-zA-Z]+)-([0-9]+)-([a-zA-Z0-9]+)\.html$ viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L] 
RewriteRule ^/forum/ftopic([0-9]+)-([0-9]+)-([a-zA-Z]+)-([0-9]+)\.html$ viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L] 
RewriteRule ^/forum/ftopic([0-9]+)-s([0-9]+)\.html$ viewtopic.php?t=$1&start=$2 [L] 
RewriteRule ^/forum/ftopic([0-9]+)\.html$ viewtopic.php?t=$1 [L] 

RewriteRule ^/forum/fpost([0-9]+)\.html$ viewtopic.php?p=$1 [L] 

RewriteRule ^/forum/post-newtopic-([0-9]+)\.html$ posting.php?mode=newtopic&f=$1 [L] 
RewriteRule ^/forum/post-reply-([0-9]+)\.html$ posting.php?mode=reply&t=$1 [L] 
RewriteRule ^/forum/post-([a-z]+)-([0-9]+)\.html$ posting.php?mode=$1&p=$2 [L] 

RewriteRule ^/forum/album\.html$ album.php [L] 
RewriteRule ^/forum/albumpic([0-9]+)\.html$ album_page.php?pic_id=$1 [L] 
RewriteRule ^/forum/albumpic([0-9]+)-([a-z]+)\.html$ album_page.php?pic_id=$1&mode=$2 [L] 
RewriteRule ^/forum/palbum\.html$ album_personal_index.php [L] 
RewriteRule ^/forum/palbum([0-9]+)\.html$ album_personal.php?user_id=$1 [L]

RewriteRule ^/forum/search-author-(.+)\.html$ search.php?search_author=$1 [L] 
RewriteRule ^/forum/search-([0-9]+)-([0-9]+)\.html$ search.php?search_id=$1&start=$2 [L] 
RewriteRule ^/forum/search-([a-zA-Z]+)\.html$ search.php?search_id=$1 [L] 

RewriteRule ^/forum/privmsg-([a-zA-Z]+)-([0-9]+)\.html$ privmsg.php?mode=$1&u=$2 [L] 
RewriteRule ^/forum/privmsg-([a-zA-Z]+)\.html$ privmsg.php?folder=$1 [L] 

RewriteRule ^/forum/map-([0-9]+)\.html$ map.php?highlight=$1 [L] 
RewriteRule ^/forum/map\.html$ map.php [L] 

RewriteRule ^/forum/faq\.html$ faq.php [L] 
RewriteRule ^/forum/search\.html$ search.php [L] 
RewriteRule ^/forum/memberlist\.html$ memberlist.php [L] 
RewriteRule ^/forum/groups\.html$ groupcp.php [L] 
RewriteRule ^/forum/report\.html$ report.php [L] 
RewriteRule ^/forum/online\.html$ viewonline.php [L]
RewriteRule ^/forum/impressum\.html$ impressum.php [L]
RewriteRule ^/forum/infos\.html$ reise-seiten.php [L]
RewriteRule ^/forum/informationen\.html$ reise-seiten2.php [L]
RewriteRule ^/forum/mehr-informationen\.html$ reise-seiten3.php [L]
RewriteRule ^/forum/mehr-infos\.html$ reise-seiten4.php [L]
RewriteRule ^/forum/weitere-seite\.html$ reise-seiten5.php [L]
RewriteRule ^/forum/weitere-infos\.html$ reise-seiten6.php [L]
RewriteRule ^/forum/weitere-informationen\.html$ reise-seiten7.php [L]
RewriteRule ^/forum/links\.html$ reise-seiten8.php [L]

RewriteRule ^/forum/profile([0-9]+)\.html$ profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^/forum/profile-([a-zA-Z0-9]+)\.html$ profile.php?mode=$1 [L]
RewriteRule ^/forum/register\.html$ profile.php?mode=register&agreed=true [L]

RewriteRule ^/forum/sitemap\.html$ list.php
RewriteRule ^/forum/sitemap-2\.html$ list-2.php
RewriteRule ^/forum/sitemap-3\.html$ list-3.php
RewriteRule ^/forum/sitemap-4\.html$ list-4.php
RewriteRule ^/forum/sitemap-5\.html$ list-5.php
RewriteRule ^/forum/sitemap-6\.html$ list-6.php
Doch trotzdem funktionieren die Unterseiten irgendwie nicht: http://www.trekking-portal.com/forum/forum5.html

Hab ich irgenwo etwas vergesen?

Danke schon mal!

Gruß,
Andi