• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 phpBB Redirect Rules

Brent W

Well-known member
#2
Figured it out for those that need it in the future:

Code:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.theexoticfish\.com
RewriteRule (.*) http://www.exoticfishforum.com/$1 [L,R=301]
 
RewriteCond %{QUERY_STRING} (^|&)t=([0-9]+)(&|$) [NC]
RewriteRule ^viewtopic\.php$ http://www.exoticfishforum.com/threads/%2? [L,R=301,NC]
RewriteCond %{QUERY_STRING} f=(\d+)$ [NC]
RewriteRule ^viewforum\.php$ http://www.exoticfishforum.com/forums/%1? [L,R=301,NC]
 
#3
Thanks for sharing, I had been dreading setting up the rewrite rules from my old phpBB board, but now I understand a bit more about it and more importantly it works. I might add I first made the mistake of putting this under the rules that exist in the root Xenforo .htaccess file and it didn't work. But at the top of the file (probably where it should have been in the first place) all is well.