XF 2.2 VB3.8 to XF rewrite rule help

philmckrackon

Well-known member
I'm slowly learning rewrites but could use some help to work from.

I'm trying to rewrite VB SEO custom urls to stanndard VB so the "XenForo Redirects for vBulletin" 1.1.9 addon will work.

I need to go from

to

Can I get an example of a working rewrite to do this and a good rewrite tester?

I have gotten as far as
Code:
forums\/f\d{0,9}\/
matches
forums/f99 in th below url.
Code:
http://www.jeep-cj.com/forums/f99/76-77-cj-heater-cables-22436/

Thanks,
 
Try the following:

Bash:
RewriteRule ^forums\/f\d+\/.*-(\d+)\/ /forums/showthread.php?t=$1 [R=301,L]

Edit: Why don't you directly forward to the XenForo thread link instead of a proxy?

Bash:
RewriteRule ^forums\/f\d+\/.*-(\d+)\/ /community/threads/$1/  [R=301,L]
 
Thanks!
I think it has to be done this way because during the import changed some of the thread and post ID's changed so the XenForo Redirects for vBulletin has to use the import table to rewrite the ID's.
 
Last edited:
Back
Top Bottom