Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

DNS Settings?

  • 17-12-2011 01:50PM
    #1
    Registered Users, Registered Users 2 Posts: 3,157 ✭✭✭


    Hi, sorry if this is in the wrong place

    I have 2 domains with letshost and 1 hosting, Im struggling to get the dns of the second site to go onto the hosting of the first site if that makes sense?

    any help would be much appreciated!

    thanks


Comments

  • Moderators, Politics Moderators, Paid Member Posts: 45,635 Mod ✭✭✭✭Seth Brundle


    Are you looking for an alias (where both sites are showing the exact same content)?

    In this case, your nameservers for both domains are the same (provided by your host) and one domain is set up properly as a domain and the second is set up as an alias.

    Maybe ask your host for more info if this is it.

    Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/ .



  • Registered Users, Registered Users 2 Posts: 1,180 ✭✭✭EyeSight


    i think you might mean having 2 different websites sharing the same server?
    to do this you can add a .htaccess file to the server with some directives inside. they basically check which of the 2 URLS are requested, and directs the users request to the correct content directory (google has plenty of easy tutorials for this)

    however your hosting provider may restrict this

    if i misunderstood, then kbannon has good advice above


  • Closed Accounts Posts: 1 roadstalker


    You got two ways to do that!

    1. DNS level redirection!

    CNAME record

    DomainA IN A 192.168.0.1
    DomainB IN CNAME DomainA

    DomainB is redirected to DomainA!

    2. Apache redirection

    Rewrite rules:
    Forcing All Traffic To A New Domain


    RewriteRule ^(.+) http://www2.yoursite.net/$1 [R,L]


Advertisement
Advertisement