Want more timely Centmin Mod News Updates?
Become a Member

Xenforo How do I go from domain to a url on forum?

Discussion in 'Forum software usage' started by ModeltogTossen, Jan 24, 2016.

  1. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    2:42 AM
    1.9.12
    10.0.23
    Hi there..

    Let's say I have a XF forum on domain.net. Alot of chat but in one area I wish to have a landing page for another domain.

    So I have domain1x2.com - when folks write that in browser I wish they could land on domain.net/bla/bla/ instead..

    URL forward I think - But I host my own dns and there I can't do url forward.

    Anyone who have tried something like that and wish to share a solution?
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,035
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    10:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    straight from How to Create NGINX Rewrite Rules | NGINX

    so don't need to create a new nginx vhost via centmin.sh menu option 2 unless domain1x2.com is a full separate site and not just domain redirect

    so in domain.net nginx vhost at to top of file a separate server content with domain1x2.com DNS pointing to domain.net IP address
    Code:
    server {
                listen   80;
                server_name domain1x2.com www.domain1x2.com;
                return 302 http://domain.net/bla/bla/;
           }
    
    if your domain1x2.com site is a full separate site with own files etc, then create a new nginx vhost via centmin.sh menu option 2 and replace the nginx vhost with above one
     
    • Like Like x 1
    • Winner Winner x 1
  3. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    2:42 AM
    1.9.12
    10.0.23
    Thank you so very much @eva2000 - have just pointed 16 other domains the to correct url on the forum - and it works like charm.. [​IMG] (Yeah, you're missing that smilies here)
     
    • Like Like x 1