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?
Look in cpanel or whatever panel you use for 'add on domains'. Mine are called 'mirrored domains' so look for something similar to that.
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
Yeah if you could explain what to put in .htaccess that would be great, I havent worked with it much Thank you
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?
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 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
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
It's called domain aliases, or domain pointers. Most CPanel doesn't let you do the settings. You need to contact your web hosts.
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.
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.
HTACCESS tutorial freewebmasterhelp.com/tutorials/htaccess/ JavaScript Redirect tizag.com/javascriptT/javascriptredirect.php Hope I helped IT