What is the best way to point two urls to same web directory

Problems with the Linux version of XAMPP, questions, comments, and anything related.

What is the best way to point two urls to same web directory

Postby kiwidesign » 04. March 2008 03:50

Hi all,

If I have two domains example1.com.au and example2.com and I wish to point them both to the same webcontent and to always serve up the url example1.com.au what is the best way to do this (to ensure I don't anger search engines etc)

Is it via a .htaccess file or through apache conf?

Any suggestions would be greatly appreciated.

Thanks
Kate
kiwidesign
 
Posts: 6
Joined: 21. January 2008 23:13

Postby Scory » 04. March 2008 11:56

There is nothing to do for Apache - the domains simply must point to the same IP.
Scory
 

Postby kiwidesign » 04. March 2008 21:38

Do you mean A record? if so the do point to the same IP which is the webserver that hosts many sites so I need to know what to put in the apache conf file. Do I just state one as the server and one as the alias? This results in the domain 'looking different' instead of them both resolving to one url.

Kate
kiwidesign
 
Posts: 6
Joined: 21. January 2008 23:13


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 31 guests