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

Redirect old forum (Xenforo)

#1
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
 
#4
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
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
 

Slavik

XenForo moderator
Staff member
#6
Were the URL id's maintained?

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

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)olddomain.com [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]
 

Tracy Perry

Well-known member
#7
What HTTP server are you using?
Slavik gave you the easiest for Apache using .htaccess.
For nginx it's a simple matter of
Code:
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.