1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

2 domains for 1 site

Discussion in 'Domain Names' started by longroad, Jul 13, 2006.

  1. #1
    How do i make 2 domains point to the same website?

    I have a .com and a .com.au but i want them to be the same site no matter which is typed into the address bar.

    How do i do this?
     
    longroad, Jul 13, 2006 IP
  2. Hobbit2

    Hobbit2 Active Member

    Messages:
    720
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Look in cpanel or whatever panel you use for 'add on domains'.

    Mine are called 'mirrored domains' so look for something similar to that.
     
    Hobbit2, Jul 13, 2006 IP
    longroad likes this.
  3. longroad

    longroad Well-Known Member

    Messages:
    1,645
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    155
    #3
    So I do that on both domain Cpanel accounts?
     
    longroad, Jul 13, 2006 IP
  4. sholiz

    sholiz Active Member

    Messages:
    495
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Could just use one as a forwarding ...
     
    sholiz, Jul 13, 2006 IP
  5. longroad

    longroad Well-Known Member

    Messages:
    1,645
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    155
    #5
    Which is the best way to do it?
     
    longroad, Jul 13, 2006 IP
  6. Correctus

    Correctus Straight Edge

    Messages:
    3,453
    Likes Received:
    389
    Best Answers:
    0
    Trophy Points:
    195
    #6
    I believe it is done in HTACCESS

    Make a file called .htaccess and redirect the index.php of any of your sites to the index.php of the other. If you want to know how to do it, just say in this thread.

    IT
     
    Correctus, Jul 14, 2006 IP
  7. longroad

    longroad Well-Known Member

    Messages:
    1,645
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    155
    #7
    Yeah if you could explain what to put in .htaccess that would be great, I havent worked with it much
    Thank you :)
     
    longroad, Jul 14, 2006 IP
  8. longroad

    longroad Well-Known Member

    Messages:
    1,645
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    155
    #8
    Ok another question..

    I've set up WHM so I can use add on domains

    In Cpanel, Im at the Addon Domain Maintenance page.
    Theres a Current Addon Domains section at the top, but this seems to be for subdirectories that i dont want to use.
    Am i supposed to enter something here?

    Because below that is "Redirect Domain to URL" which is what Im trying to use, but when entering something in there, it doesnt seem to do anything at all. I enter the redirection URL but when I go back to this screen to view it, there is nothing there.

    Can anyone help?
     
    longroad, Jul 30, 2006 IP
  9. dagg3r

    dagg3r Peon

    Messages:
    92
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    cheers mate, i hope this advice helps im from downunder too :)
    edit the htaccess file on your old domain account, and put this in, where oldomain.com put ur current domain and newdomain.com put your new one... hope it works :cool:




    RewriteCond %{HTTP_HOST} !^olddomain.com$ [NC]
    RewriteRule ^(.*)$ newdomain.com/$1 [R=301,L]



    btw you could just go into cpanel and use park domain, and just set ur new domain .com.au through "ADD DOMAIN" should work.

    cheers
     
    dagg3r, Jul 30, 2006 IP
  10. longroad

    longroad Well-Known Member

    Messages:
    1,645
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    155
    #10
    Its not an old domain though, they just have a .com.au and a .com for this site, I want people to be able to access the site through both of these addresses.
    Will your code work for that scenario too?
    I thought a redirect would sort of drop one domain for the other, rather than supplement them
     
    longroad, Jul 31, 2006 IP
  11. increseo

    increseo Peon

    Messages:
    241
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    It's called domain aliases, or domain pointers. Most CPanel doesn't let you do the settings. You need to contact your web hosts.
     
    increseo, Jul 31, 2006 IP
  12. longroad

    longroad Well-Known Member

    Messages:
    1,645
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    155
    #12
    Im sure theres a simple way to do this, lots of people have plenty of domains pointing to the one site.. is there a tutorial online for this? I cant seem to find anything.
     
    longroad, Jul 31, 2006 IP
  13. DanKuthy

    DanKuthy Guest

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I'm not sure, generally there is a way to setup an automatic redirect from one domain to the other, or, you could always build a "This site can be found here" link on one of them.
     
    DanKuthy, Jul 31, 2006 IP
  14. Correctus

    Correctus Straight Edge

    Messages:
    3,453
    Likes Received:
    389
    Best Answers:
    0
    Trophy Points:
    195
    #14
    HTACCESS tutorial
    freewebmasterhelp.com/tutorials/htaccess/

    JavaScript Redirect
    tizag.com/javascriptT/javascriptredirect.php

    Hope I helped

    IT
     
    Correctus, Jul 31, 2006 IP