multiple domains and url masking

Question:

I own two other domains that are registered with a different hosting company. I want to transfer the domains here and point them to a subdirectory.

I also want domain masking so when my users type www.second_domain.com into the browser they see www.second_domain.com when the page loads, not www.my_primary_domain.com/second_domain

Is this possible and how much will it cost?

Thanks!

Answer:

Hi,

There is no extra cost (as long as these are not high traffic sites – if they are, you’ll need to make a seperate account for them).

Just go to the domain section of the control panel and follow the extra domains list.

You can add the extra domains there and point them to the directory of your choice.

They will resolve totally independent of your primary domain.

Let us know if you need more help!

Forcing all requests from one domain name to go to another (and update address bar)

This is a mod_rewrite recipe that will force all requests for your hosting account to be
redirected to a particular domain.

Here’s an example:

You have

my-domain.com,
my-domain.net,
my-domain.org

on your account. You would like requests for any of the domain names to go to:

my-domain.com

and to update the address bar in the browser to reflect this.

Here’s how to do it :

Create a .htaccess file in your top web directory (the directory www for most users)

put the following lines in it:


RewriteEngine On

# this will force all domain requests to go to my-domain.com
RewriteCond %{HTTP_HOST} !^www.my-domain.com
rewriterule (.*) http://www.my-domain.com/$1 [R=permanent,L]

How can I change my primary domain?

You can change your primary domain via the ‘domain’ section of your control panel. Just click on the link that says ‘Click here to change your Primary Domain’.

Warning: When changing your primary domain name, you will lose all existing email accounts and subdomains. You will need to recreate all subdomains and email accounts on your new domain.

If you still want your current domain to work, you can “park” it via the domain section of your control panel. Just click on the link that says ‘Add a parked domain’.

Please remember your_username.phpwebhosting.com will always work. There is no need to park this domain.

Note: If you get the message “That is not a valid domain or the domain is already in use” when trying to change your primary domain, this most likely means the domain is already parked on your account. In order to make a domain your primary domain, you must first remove it as a parked domain. You can remove parked domains by clicking on the ‘List Parked Domains’ link then clicking ‘delete’ next to the domain you wish to remove.