1. 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

Discussion in 'Installation, Upgrade, and Import Support' started by Brent W, Apr 11, 2012.

  1. Brent W

    Brent W Well-Known Member

  2. Brent W

    Brent W Well-Known Member

    Figured it out for those that need it in the future:

    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]
    Claudio, Coolhaus and Jake Bunce like this.
  3. Coolhaus

    Coolhaus Member

    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.

Share This Page