Konfiguration von Link-Umschreibungen (nach Migration)#
Dieser Artikel beschreibt die Möglichkeit nach einem Software-Wechsel oder einer Migration von einer älteren Software-Version, alte Links zu Inhalten wie beispielsweise Themen auf die neue Link-Struktur automatisiert umzuleiten, damit alte Links weiterhin erreichbar bleiben.
Hinweis
Diese Anleitung richtet sich an Kunden, die die Software selbstständig auf einem eigenen Server oder Webhosting betreiben.
Die hier gezeigten Beispiel orientieren sich an der Standardinstallation. Je nach Umfang der installierten Pakete sowie der Art der genutzten Pfade müssen die Rewrite-Regeln entsprechend angepasst werden.
Rewrite-Regeln für Apache / Litespeed können über eine .htaccess
-Datei angelegt werden.
Falls bereits vorhanden, öffnen Sie dazu die .htaccess
-Datei, die im Hauptverzeichnis Ihrer WoltLab Suite Installation liegt, und fügen Sie die unten stehenden Rewrite-Regeln am Anfang der Datei hinzu.
Sollte noch keine .htaccess
-Datei existieren, dann können Sie diese mit einem beliebigen Texteditor erstellen.
Burning Board 4.x#
Apache / Litespeed#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^calendar/index.php/(.*) calendar/index.php?$1 [L,QSA]
RewriteRule ^gallery/index.php/(.*) gallery/index.php?$1 [L,QSA]
RewriteRule ^filebase/index.php/(.*) filebase/index.php?$1 [L,QSA]
RewriteRule ^index.php/(.*) forum/index.php?$1 [L,QSA]
</IfModule>
Nginx#
location /calendar {
rewrite ^/calendar/index.php/(.*) /calendar/index.php?$1 break;
}
location /gallery {
rewrite ^/gallery/index.php/(.*) /gallery/index.php?$1 break;
}
location /filebase {
rewrite ^/filebase/index.php/(.*) /filebase/index.php?$1 break;
}
location /index {
rewrite ^/index.php/(.*) /forum/index.php?$1 break;
}
Burning Board 3.x#
Apache / Litespeed#
Ohne Burning Board 3 SEO-Plugin#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Burning Board 3
RewriteCond %{QUERY_STRING} page=User&userID=([0-9]+)
RewriteRule ^index\.php$ /forum/index.php?user/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} page=Thread&threadID=([0-9]+)&action=lastPost
RewriteRule ^index\.php$ /forum/index.php?thread/%1/&action=lastPost [R=301,L]
RewriteCond %{QUERY_STRING} page=Thread&threadID=([0-9]+)&action=firstNew
RewriteRule ^index\.php$ /forum/index.php?thread/%1/&action=firstNew [R=301,L]
RewriteCond %{QUERY_STRING} page=Thread&postID=([0-9]+)
RewriteRule ^index\.php$ /forum/index.php?thread/thread/&postID=%1#post%1 [NE,R=301,L]
RewriteCond %{QUERY_STRING} page=Thread&postID=([0-9]+)#post([0-9]+)
RewriteRule ^index\.php$ /forum/index.php?thread/thread/&postID=%1#post%1 [NE,R=301,L]
RewriteCond %{QUERY_STRING} page=Thread&threadID=([0-9]+)&pageNo=([0-9]+)
RewriteRule ^index\.php$ /forum/index.php?thread/%1/&pageNo=%2 [R=301,L]
RewriteCond %{QUERY_STRING} page=Thread&threadID=([0-9]+)
RewriteRule ^index\.php$ /forum/index.php?thread/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} page=Board&boardID=([0-9]+)&pageNo=([0-9]+)
RewriteRule ^index\.php$ /forum/index.php?board/%1/&pageNo=%2 [R=301,L]
RewriteCond %{QUERY_STRING} page=Board&boardID=([0-9]+)
RewriteRule ^index\.php$ /forum/index.php?board/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} page=Attachment&attachmentID=([0-9]+)
RewriteRule ^index\.php$ index.php?attachment/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} page=Index
RewriteRule ^index\.php$ /forum/index.php?board-list/ [R=301,L]
RewriteCond %{QUERY_STRING} page=Portal
RewriteRule ^index\.php$ index.php?dashboard/ [R=301,L]
# Community Blog 2
RewriteCond %{QUERY_STRING} page=UserBlogOverview
RewriteRule ^index\.php$ /blog/ [R=301,L]
RewriteCond %{QUERY_STRING} page=UserBlogEntry&entryID=([0-9]+)
RewriteRule ^index\.php$ /blog/index.php?entry/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} page=UserBlog&userID=([0-9]+)&categoryID=([0-9]+)
RewriteRule ^index\.php$ /blog/index.php?entry-list/&userID=%1 [R=301,L]
RewriteCond %{QUERY_STRING} page=UserBlogOverview&categoryID=([0-9]+)
RewriteRule ^index\.php$ /blog/index.php?entry-list/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} page=UserBlog&userID=([0-9]+)
RewriteRule ^index\.php$ /blog/index.php?entry-list/&userID=%1 [R=301,L]
# Community Gallery 2
RewriteCond %{QUERY_STRING} page=UserGalleryOverview
RewriteRule ^index\.php$ /gallery/ [R=301,L]
RewriteCond %{QUERY_STRING} page=UserGalleryAlbumList&userID=([0-9]+)
RewriteRule ^index\.php$ /gallery/index.php?album/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} page=UserGalleryPhotos&userID=([0-9]+)
RewriteRule ^index\.php$ /gallery/index.php?user-image-ist/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} page=UserGalleryPhoto&photoID=([0-9]+)
RewriteRule ^index\.php$ /gallery/index.php?image/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} page=UserGalleryPhotos&albumID=([0-9]+)
RewriteRule ^index\.php$ /gallery/index.php?album/%1/ [R=301,L]
# Community Calendar 2
RewriteCond %{QUERY_STRING} page=CalendarMonth
RewriteRule ^index\.php$ /calendar/ [R=301,L]
RewriteCond %{QUERY_STRING} page=CalendarWeek
RewriteRule ^index\.php$ /calendar/index.php?weekly/ [R=301,L]
RewriteCond %{QUERY_STRING} page=CalendarEvent&eventID=([0-9]+)
RewriteRule ^index\.php$ /calendar/index.php?event/%1/ [R=301,L]
</IfModule>
Mit Burning Board 3 SEO-Plugin#
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Burning Board
RewriteRule ^user/([0-9]+)\-([^/\.]*)/?$ /forum/index.php/User/$1-$2/ [R=301,QSA,L]
RewriteRule ^(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/last\-post\.html$ /forum/index.php?thread/$4-$5/&action=lastPost [R=301,QSA,L]
RewriteRule ^(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/first\-new\-post\.html$ /forum/index.php?thread/$4-$5/&action=firstNew [R=301,QSA,L]
RewriteRule ^(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/p([0-9]+)\-([^/\.]*)/?$ /forum/index.php?thread/&postID=$4#post$4 [R=301,QSA,L]
RewriteRule ^(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/index([0-9]+)\.html$ /forum/index.php?thread/$4-$5/&pageNo=$6 [R=301,QSA,L]
RewriteRule ^(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/([0-9]+)\-([^/\.]*)/?$ /forum/index.php?thread/$4-$5/ [R=301,QSA,L]
RewriteRule ^(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/index([0-9]+)\.html$ /forum/index.php?board/$2-$3/&pageNo=$4 [R=301,QSA,L]
RewriteRule ^(board[0-9]+\-[^/\.]+/)*board([0-9]+)\-([^/\.]+)/?$ /forum/index.php?board/$2/ [R=301,QSA,L]
RewriteCond %{QUERY_STRING} page=Attachment&attachmentID=([0-9]+)
RewriteRule ^index\.php$ /forum/index.php?attachment/%1/ [R=301,QSA,L]
# Community Blog
RewriteRule ^user/blog([0-9]+)\-([^/\.]*)/entry([0-9]+)\-([^/\.]*)/?$ /blog/index.php?entry/$3-$4/ [R=301,QSA,L]
RewriteRule ^user/blog([0-9]+)\-([^/\.]*)/category([0-9]+)\-([^/\.]*)/?$ /blog/index.php?entry-list/&userID=$1 [R=301,QSA,L]
RewriteRule ^blog/category([0-9]+)\-([^/\.]*)/?$ /blog/index.php??entry-list/$1/ [R=301,QSA,L]
RewriteRule ^user/blog([0-9]+)\-([^/\.]*)/?$ /blog/index.php?entry-list/&userID=$1 [R=301,QSA,L]
RewriteCond %{QUERY_STRING} page=UserBlogOverview
RewriteRule ^index\.php$ /blog/ [R=301,QSA,L]
# Community Gallery
RewriteRule ^user/gallery([0-9]+)/([^/\.]*)/photo([0-9]+)/([^/\.]*)/?$ /gallery/index.php?image/$3-$4/ [R=301,QSA,L]
RewriteRule ^user/gallery([0-9]+)/([^/\.]*)/album([0-9]+)/([^/\.]*)/?$ /gallery/index.php/Album/$3-$4/ [R=301,QSA,L]
RewriteRule ^gallery/category([0-9]+)/([^/\.]*)/?$ /gallery/index.php?image-list/$1-$2/ [R=301,QSA,L]
RewriteRule ^user/gallery([0-9]+)/([^/\.]*)/?$ /gallery/index.php?image/$3-$4/ [R=301,QSA,L]
RewriteCond %{QUERY_STRING} page=UserGalleryOverview
RewriteRule ^index\.php$ /gallery/ [R=301,QSA,L]
RewriteCond %{QUERY_STRING} page=UserGalleryAlbumList&userID=([0-9]+)
RewriteRule ^index\.php$ /gallery/index.php?album-list/%1/ [R=301,QSA,L]
RewriteCond %{QUERY_STRING} page=UserGalleryPhotos&userID=([0-9]+)
RewriteRule ^index\.php$ /gallery/index.php?user-image-list/%1/ [R=301,QSA,L]
</ifmodule>
Burning Board 2.x#
Apache / Litespeed#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} userid=([0-9]+)
RewriteRule ^profile\.php$ index.php?user/%1/ [R=301,QSA,L]
RewriteCond %{QUERY_STRING} goto=lastpost&threadid=([0-9]+)
RewriteRule ^thread\.php$ /forum/index.php?thread/%1/&action=lastPost [R=301,QSA,L]
RewriteCond %{QUERY_STRING} threadid=([0-9]+)&goto=lastpost
RewriteRule ^thread\.php$ /forum/index.php?thread/%1/&action=lastPost [R=301,QSA,L]
RewriteCond %{QUERY_STRING} postid=([0-9]+)#post([0-9]+)
RewriteRule ^thread\.php$ /forum/index.php?thread/&postID=%1#post%1 [NE,R=301,L]
RewriteCond %{QUERY_STRING} postid=([0-9]+)
RewriteRule ^thread\.php$ /forum/index.php?thread/&postID=%1#post%1 [NE,R=301,L]
RewriteCond %{QUERY_STRING} threadid=([0-9]+)page=([0-9]+)
RewriteRule ^thread\.php$ /forum/index.php?thread/%1/&pageNo=%2 [R=301,QSA,L]
RewriteCond %{QUERY_STRING} threadid=([0-9]+)
RewriteRule ^thread\.php$ /forum/index.php?thread/%1/ [R=301,QSA,L]
RewriteCond %{QUERY_STRING} boardid=([0-9]+)&daysprune=1000&sortfield=lastposttime&sortorder=DESC&page=([0-9]+)
RewriteRule ^board\.php$ /forum/index.php?board/%1/&pageNo=%2 [R=301,QSA,L]
RewriteCond %{QUERY_STRING} boardid=([0-9]+)
RewriteRule ^board\.php$ /forum/index.php?board/%1/ [R=301,QSA,L]
RewriteCond %{QUERY_STRING} attachmentid=([0-9]+)
RewriteRule ^attachment\.php$ index.php?attachment/%1/ [R=301,QSA,L]
RewriteRule ^archive/index\.html$ index.php?board-list/ [R=301,QSA,L]
RewriteRule ^archive/([0-9]*)/board\.html$ /forum/index.php?board/%1/ [R=301,QSA,L]
RewriteRule ^archive/([0-9]*)/([0-9]*)/board\.html$ /forum/index.php?board/%1/&pageNo=%2 [R=301,QSA,L]
RewriteRule ^archive/([0-9]*)/thread\.html$ /forum/index.php?thread/%1/ [R=301,QSA,L]
RewriteRule ^archive/([0-9]*)/([0-9]*)/thread\.html$ /forum/index.php?thread/%1/&pageNo=%2 [R=301,QSA,L]
</IfModule>
vBulletin 3.x/4.x#
Apache / Litespeed#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^f=([0-9]+)$
RewriteRule ^forumdisplay\.php$ forum/index.php?board/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} ^p=([0-9]+)$
RewriteRule ^showthread\.php$ forum/index.php?thread/&postID=%1#post%1 [NE,R=301,L]
RewriteCond %{QUERY_STRING} ^([0-9]+)-([^/\.]+)&goto=newpost$
RewriteRule ^showthread\.php$ forum/index.php?thread/%1-%2/&action=firstNew [R=301,L]
RewriteCond %{QUERY_STRING} ^t=([0-9]+)&p=([0-9]+)
RewriteRule ^showthread\.php$ forum/index.php?thread/%1/&postID=%2#post%2 [NE,R=301,L]
RewriteCond %{QUERY_STRING} ^t=([0-9]+)&page=([0-9]+)
RewriteRule ^showthread\.php$ forum/index.php?thread/%1/&pageNo=%2 [R=301,L]
RewriteCond %{QUERY_STRING} ^p=([0-9]+)&postcount=([0-9]+)$
RewriteRule ^showpost\.php$ forum/index.php?thread/&postID=%1#post%1 [NE,R=301,L]
RewriteCond %{QUERY_STRING} ^t=([0-9]+)
RewriteRule ^showthread\.php$ forum/index.php?thread/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} ^attachmentid=([0-9]+)&d=([0-9]+)$
RewriteRule ^attachment\.php$ index.php?attachment/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} ^([0-9]+)-([^/\.]+)$
RewriteRule ^member\.php$ index.php?user/%1-%2/ [R=301,L]
RewriteCond %{QUERY_STRING} ^do=getnew&contenttype=vBForum_Post$
RewriteRule ^search\.php$ index.php?board-quick-search/&mode=unreadPosts [R=301,L]
RewriteRule ^forum\.php$ forum/index.php?board-list/ [R=301,L]
RewriteRule ^online\.php$ index.php?users-online-list/ [R=301,L]
RewriteRule ^activity\.php$ index.php?dashboard/ [R=301,L]
</IfModule>
phpBB 3.x#
Apache / Litespeed#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^p=([0-9]+).*$
RewriteRule ^viewtopic\.php$ forum/index.php?thread/&postID=%1#post%1 [R=301,L]
RewriteCond %{QUERY_STRING} ^f=([0-9]+).*$
RewriteRule ^viewforum\.php$ forum/index.php?board/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} ^f=([0-9]+)&t=([0-9]+).*$
RewriteRule ^viewtopic\.php$ forum/index.php?thread/%2/ [R=301,L]
RewriteCond %{QUERY_STRING} ^t=([0-9]+).*$
RewriteRule ^viewtopic\.php$ forum/index.php?thread/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} ^mode=viewprofile&u=([0-9]+).*$
RewriteRule ^memberlist\.php$ index.php?user/%1/ [R=301,L]
</IfModule>
XenForo 2.x#
Apache / Litespeed#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^members/([^/]*)\.([0-9]+)/$ index.php?user/$2/ [R=301,L]
RewriteRule ^attachments/([^/]*)\.([0-9]+)/$ index.php?attachment/$2/ [R=301,L]
RewriteRule ^categories/([^/]*)\.([0-9]+)/$ forum/index.php?board/$2/ [R=301,L]
RewriteRule ^forums/([^/]*)\.([0-9]+)/$ forum/index.php?board/$2/ [R=301,L]
RewriteRule ^threads/([^/]*)\.([0-9]+)/page-([0-9]+)$ forum/index.php?thread/$2/&pageNo=$3 [R=301,L]
RewriteRule ^threads/([^/]*)\.([0-9]+)/post-([0-9]+)$ forum/index.php?thread/$2/&postID=$3 [R=301,L]
RewriteRule ^threads/([^/]*)\.([0-9]+)/$ forum/index.php?thread/$2/ [R=301,L]
</IfModule>