Cei
Cei

Reputation:

How to create a domain alias (mapping)

I am looking to map a xxxxx.com to aaaaa.com. They would be hosted on the same server. I just would xxxxx.com to be an alias for aaaaa.com. So if you want to login at aaaaa.com/login.php you can just as easily do it via xxxxx.com/login.php (having xxxxx.com showing in the address bar).

Is this possible and if so how?

Thank you very much,

Cei

Upvotes: 0

Views: 1011

Answers (2)

Sean Bright
Sean Bright

Reputation: 120704

You can't do it within .htaccess, but within a http.conf <VirtualHost> section you can use the ServerName and ServerAlias directives to accomplish this.

Upvotes: 2

ylebre
ylebre

Reputation: 3130

If you are using Apache, you could take a peek at the ServerAlias directive.

Upvotes: 0

Related Questions