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

XF 1.5 Moving to another domain. Rewrite rules?


Well-known member

I'm moving one of my forums to another domain. I know how to do that. I just don't know what rewrite rules I need for Xenforo and the Media Gallery?

I'm changing from https://www.example.net to https://example.com
I have the rewrite rules to redirect the main domain, but what do I use to redirect the threads / posts / forums and all the media gallery pages?
Never been good with rewrite rules o_O

I'm using Nginx.

Thanks. :)

Jim Boy

Well-known member
Can't you do this with

server {
    listen 80;
    server_name www.example.net;
    rewrite ^(.*)$ $scheme://example.com$1;