XF 1.4 Redirections vB 3.8 with vBseo

Luis

Well-known member
I need a small help with the redirections for one importation. I need the rules to be inserted into the file .htaccess

The links are:

Old link vb http://www.my_domain.com/foro/index.php
New link xf http://www.my_domain.com/foro/

Old link vb http://www.my_domain.com/foro/todos.php
New link xf http://www.my_domain.com/foro/forums/

Old link vb http://www.my_domain.com/foro/normas-del-foro-158/
New link xf http://www.my_domain.com/foro/forums/normas-del-foro.158/

Old link vb http://www.my_domain.com/foro/normas-del-foro-158/normas-del-foro-mercado-aplicaci%F3n-11-03-2013-a-1271
New link xf http://www.my_domain.com/foro/threads/normas-del-foro-mercado-aplicacion-11-03-2013.1271/

Old link vb http://www.my_domain.com/foro/members/pistu-38/
New link xf http://www.my_domain.com/foro/members/pistu.38/

Old link vb http://www.my_domain.com/foro/members/list/
New link xf http://www.my_domain.com/foro/members/

Thank you for any help.

Regards, Luis.
 
Add these rules to the top of the .htaccess file in the /foro directory (which should be XF's .htaccess file):

Code:
RewriteEngine On

RewriteRule ^todos\.php$ forums/ [R=301,L]

RewriteRule ^[^/]+-([0-9]+)/$ forums/$1/ [R=301,L]

RewriteRule ^[^/]+/[^/]+-([0-9]+)$ threads/$1/ [R=301,L]

RewriteRule ^members/[^/]+-([0-9]+)/$ members/$1/ [R=301,L]

RewriteRule ^members/list/$ members/ [R=301,L]
 
Some of Google's thread links have ending slashes, so use this to allow for an ending slash:

Code:
RewriteEngine On

RewriteRule ^todos\.php$ forums/ [R=301,L]

RewriteRule ^[^/]+-([0-9]+)/$ forums/$1/ [R=301,L]

RewriteRule ^[^/]+/[^/]+-([0-9]+)/?$ threads/$1/ [R=301,L]

RewriteRule ^members/[^/]+-([0-9]+)/$ members/$1/ [R=301,L]

RewriteRule ^members/list/$ members/ [R=301,L]
 
Top Bottom