Learn about Centmin Mod LEMP Stack today
Become a Member

Nginx Redirecting/Forwarding secondary domains...

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by speedway, Jun 10, 2016.

  1. speedway

    speedway Member

    30
    12
    8
    Nov 28, 2015
    Ratings:
    +16
    Local Time:
    5:59 PM
    None
    None
    Hi all

    What is the best way to redirect secondary domains to one master domain? I have 2 extra variation domains that I want to redirect to one domain, say domain1.com and domain2.com to domain3.com so all of them point to the same site. Would I need to create boilerplate sites with centmin then modify each conf file to get them to go where I want?

    I'm a bit green on this sort of thing so any help would be appreciated.

    Cheers
    Bruce
     
  2. Jimmy

    Jimmy Premium Member Premium Member

    1,025
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    3:59 AM
    1.13.x
    MariaDB 10.1.x
  3. speedway

    speedway Member

    30
    12
    8
    Nov 28, 2015
    Ratings:
    +16
    Local Time:
    5:59 PM
    None
    None
    • Like Like x 1