Redirect old forum (Xenforo)

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
 
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.
 
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
 
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]
 
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.
 
Top Bottom