Redirect old forum (Xenforo)

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


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} ^(.*) [NC]
RewriteRule ^(.*)$$1 [R=301,L]

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;
    return 301$request_uri;
Assuming you are using IPv6 also. If not, just comment out the listen [::]:80; using a # sign.