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

Redirect old forum (Xenforo)

Discussion in 'Server Configuration and Hosting' started by Harrison V, Mar 6, 2015.

  1. Harrison V

    Harrison V Member

    Hey Guys. I recently setup a new Xenforo forum, on a new server. It is under a new domain also. So, I was wondering if there is a way to redirect the old xenforo forum, on the old server and domain, to the new server/domain/forum. If there is anyway to do this, please let me know. Thanks!
    - Harry
  2. Amaury

    Amaury Well-Known Member

    Going to tag @Tracy Perry because he's excellent with servers.
    Harrison V likes this.
  3. Harrison V

    Harrison V Member

  4. Erin Nicole

    Erin Nicole Member

    What control panel are you using on your server?

    If cPanel, login. Go to "Parked Domains" enter your domain there. Submit. Then edit the redirection so that it goes to your new domain URL.

    Not sure how to do this in any other control panel.
  5. Harrison V

    Harrison V Member

    No control panel. Just a VPS I run this on. I was thinking there'd probably be a script or something like there are for IVB and other board's.
    - Harry
  6. Slavik

    Slavik XenForo Moderator Staff Member

    Were the URL id's maintained?

    If so make a .htaccess in the old domain with.

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(.*)olddomain.com [NC]
    RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]
    Harrison V likes this.
  7. Tracy Perry

    Tracy Perry Well-Known Member

    What HTTP server are you using?
    Slavik gave you the easiest for Apache using .htaccess.
    For nginx it's a simple matter of
    server {
    # ipv4
    listen 80;
    # ipv6
    listen [::]:80;
        server_name www.yourolddomain.com olddomain.com;
        return 301 http://newdomain.com$request_uri;
    Assuming you are using IPv6 also. If not, just comment out the listen [::]:80; using a # sign.

Share This Page