TheLaw
Well-known member
OK - The instructions are difficult to follow. I'm using standard vb3 query strings after converting a vb4 site, same thread numbers. This is the only thing that works for redirecting threads. The other .htaccess directives seem to be ignored and setting up the files for the redirect doesn't work. I am guessing it is because my XF install is in public_html (root) when my VB4 forum was in the /forums/ directory.
This only works for threads. Tried the following:
This doesn't work at all. Can't explain why. Don't get it. The above doesn't work when substituting out forums...
Code:
RewriteCond %{QUERY_STRING} (^|\?)t=([0-9]+)($|&)
RewriteRule ^forums/showthread\.php$ /threads/%2/? [R=301,L]
RewriteRule ^[^/]+/([0-9]+)-.+-([0-9]+)\.html$ /threads/$1/page-$2 [R=301,L]
RewriteRule ^[^/]+/([0-9]+)-[^\.]+\.html$ /threads/$1/ [R=301,L]
This only works for threads. Tried the following:
Code:
## to redirect forums (forumdisplay using f)
RewriteCond %{QUERY_STRING} ^f=([0-9]+)$
RewriteRule ^forumdisplay\.php$ http://www.thelaw.com/forums/.%1? [L,R=301]
## to redirect threads (showthread using t=)
RewriteCond %{QUERY_STRING} ^t=([0-9]+)$
RewriteRule ^showthread\.php$ http://www.thelaw.com/threads/.%1? [L,R=301]
## to redirect posts (showthread using p=)
RewriteCond %{QUERY_STRING} ^p=([0-9]+)$
RewriteRule ^showthread\.php$ http://www.thelaw.com/posts/.%1? [L,R=301]
This doesn't work at all. Can't explain why. Don't get it. The above doesn't work when substituting out forums...
Last edited: