You can point multiple domain names to the same web hosting account in a number of ways, depending on how you want to use the additional domain names.
Domain Mapping
Domain mapping not only points domain names to the same account, but also allows for full email functionality for every mapped domain.
For example, say you have purchased your-domain.com and my-domain.net. You make your-domain.com the domain name for your web hosting account, and build a website.
Later, you can map my-domain.net to the same hosting account. Your website can be accessed through your-domain.com and my-domain.net, and pages on your website can also be reached with both domains - your-domain.com/store is the same as my-domain.net/store.
But you can set up unique mailboxes for both domain names - store@your-domain.com is a separate mailbox from store@my-domain.net, and both can receive and send emails.
To arrange domain mapping:
- Log into your Heart Internet Customer Area
- Click ‘Manage Domain Names’
- Click ‘Manage Domain Mappings’
- Assign the new domain name to the hosting package you want it mapped to
Web Forwarding
You can also use web forwards to point domain names to your account. Forwards do not allow for email functionality, or work in exactly the same way as a domain mapping, but they can point customers to your site. This allows you to forward domain names without having to purchase a hosting package.
If you do not have hosting:
- In your Customer Area, select ‘Manage Domain Names’.
- Select the domain you wish to forward from the drop-down list under ‘Manage Domain Parking’.
- Click the ‘Manage Now’ button.
- Select ‘Web Forwarding’.
For web forwarding, you can choose between two options – Automatic or Framed.
Automatic redirection sends the user’s browser to the specified URL that displays the target address in the target bar.
For example, if you forwarded my-domain.net to your-domain.com, the visitor would type in my-domain.net into their browser, and once the page had loaded, see your-domain.com in the address bar.
Framed redirection sends the user to your target address, but keeps your domain in the address bar. You can also set the title, meta keywords, and meta description for search engines to index your site under that domain name.
For example, if you forwarded my-domain.net to your-domain.com and used framed redirection, the visitor would type in my-domain.net into their browser, and see the website for your-domain.com, but the title, meta keywords, description, and address would all relate to my-domain.net.
To set up a Web Forwarding:
- Select if you want Automatic or Framed redirection
- Enter the website you want the domain name to redirect to
- Click on “Update Now”
- Your domain name will now redirect to that website
Web Redirect
If you have a hosting package and want to move visitors from one domain name to another, you can set up a web redirect. This redirects everything from one domain name to another automatically.
For example, if your visitor typed in your-domain.com and you had set up a redirect, it would automatically refresh and go to my-domain.net.
You can also redirect directories to websites or to directories on other websites. For example, you can set your-domain.com/store to automatically redirect to my-domain.net/store.
To set up a Web Redirect:
- Log into your eXtend Control Panel
- Click ‘Website Redirect’ under ‘Web Tools’
- Enter in the directory you want to redirect from (if you want to redirect the entire site, leave it blank)
- Enter in the website you want to redirect to
- Choose whether this is a permanent or temporary redirection
- Click ‘Create Redirect’
This creates an .htaccess file in your public_html directory, which sets up the redirects. You can edit this file in any text editor, as well as in your File Manager.
You can add or edit redirects in your .htaccess file at any time.
To edit your .htaccess file:
- Log into your hosting account using FTP or the eXtend Control Panel File Manager
- Download the .htaccess file onto your computer
- Open the .htaccess file in a text editor, such as Notepad++
- Make your changes
- Save your .htaccess file
- Re-upload to your public_html directory
In your .htaccess file, you can:
To redirect your entire site to a new URL:
redirect 301 / [DOMAIN]
Replace [DOMAIN] with your new URL.
To redirect a directory to a new URL:
redirect 301 /[DIRECTORY] [DOMAIN/DIRECTORY]
Replace [DIRECTORY] with the directory name and [DOMAIN/DIRECTORY] with the new URL and directory on the new site.
To redirect a single page to a new URL:
redirect 301/[DIRECTORY/PAGE] [DOMAIN/DIRECTORY/PAGE]
Replace [DIRECTORY/PAGE] with the page address within the directory and [DOMAIN/DIRECTORY/PAGE] with the new URL, down to the page address, on the new site.
Please note: Redirects will not work if you try to redirect back to the same domain name. You cannot redirect your-domain.com to your-domain.com. However, you can redirect pages and directories to new pages and directories within the same domain.
Web browsers also cache 301 redirects, so if you remove or change the redirect, you will need to clear your browser’s cache to see the effect.