badstraw360
Member
Hey guys Im a little confused on how to use proper rewrite rules.
As you can see I kept the IDs, so Im planning to redirect :
from this VB URL:
http://domain.com/showthread.php?t=30438
to this xenforo URL:
http://domain.com/threads/transform-and-opinion.30438/
from this VB URL:
http://domain.com/forumdisplay.php?f=218
to this xenforo URL:
http://domain.com/forums/new-users.218/
From this VB URL:
http://domain.com/member.php?u=4199
to this xenforo URL:
http://domain.com/members/john.4199/
Are these rewrite rules correct?
Thanks for the help!
As you can see I kept the IDs, so Im planning to redirect :
from this VB URL:
http://domain.com/showthread.php?t=30438
to this xenforo URL:
http://domain.com/threads/transform-and-opinion.30438/
from this VB URL:
http://domain.com/forumdisplay.php?f=218
to this xenforo URL:
http://domain.com/forums/new-users.218/
From this VB URL:
http://domain.com/member.php?u=4199
to this xenforo URL:
http://domain.com/members/john.4199/
Are these rewrite rules correct?
Code:
RewriteEngine On
RewriteRule ^/forum\.php$ /forums/ [R=301,L]
RewriteRule ^/forumdisplay\.php/([0-9]+)-.*$ /forums/$1/ [R=301,L]
RewriteRule ^/member\.php/([0-9]+)-.*$ /members/$1/ [R=301,L]
RewriteRule ^/showthread\.php/([0-9]+)-.*$ /threads/$1/ [R=301,L]
Thanks for the help!