XF 1.3 redirect help

I've just imported from vb4 to xenforo and need some help with redirects of all our old thread URLS.
My old URLs look like: www.xyz.com/threads/83-شرح-نصّ-المعراج
New URLs: www.xyz.com/xf/index.php?threads/43.شرح-نصّ-المعراج

Thanks for your help
 
If the ids are the same...

Put these rules at the top of the .htaccess file in your web root:

Code:
RewriteEngine On

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

If the ids are different...

Put these rules at the top of the .htaccess file in your web root:

Code:
RewriteEngine On

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

Then upload these redirect scripts to your /xf directory:

http://xenforo.com/community/resources/redirection-scripts-for-vbulletin-3-x.264/
 
Thanks, but threads archived in Google turns to other topics
Probably because the number of threads become different when converting to xenforo
Look at the links:
www.xyz.com/threads/83-شرح-نصّ-المعراج
www.xyz.com/xf/index.php?threads/43.شرح-نصّ-المعراج
 
Thanks, but threads archived in Google turns to other topics
Probably because the number of threads become different when converting to xenforo
Look at the links:
www.xyz.com/threads/83-شرح-نصّ-المعراج
www.xyz.com/xf/index.php?threads/43.شرح-نصّ-المعراج

The use the second set of rules in combination with those redirect scripts. That will perform the id mapping:

...

If the ids are different...

Put these rules at the top of the .htaccess file in your web root:

Code:
RewriteEngine On

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

Then upload these redirect scripts to your /xf directory:

http://xenforo.com/community/resources/redirection-scripts-for-vbulletin-3-x.264/
 
Back
Top Bottom