Multiple Domain Names on One Web Host
Domain names are pretty cheap most of you guys have might have more than one domain names. I have a few domains like this site itself, a personal domain at namvijay.com and few others.
Do we need to get separate web host accounts for each domain? Nope definitely not. When you are getting a web host account, make sure that it allows multiple domains. Most web hosts do allow but its best that you ensure that is part of the deal.
CPanel
Second make sure it has cpanel instead of DirectAdmin control panel. This cpanel control panel allows you to tweak settings like addding additional domain names and sub-domains. Email accounts can be added from this panel as well. I am suggesting cpanel as the control panel as it is much more powerful and user friendly.
Suggestion
If you are having multiple domains I would suggest having each site in separate folder for easy maintenance. You will have to create it anyway if you intend to install multiple blog software like wordpress.
Adding Domains
If you web host is using cpanel its simple to do so.
Go the Control Panel and to the portion that says Domains and Click ‘Addon Domains’.

Key in the necessary details and password. If you have your site in a particular folder key it in right after /public_html for the field Document Root. When you key in www.sgtechblog.com in the browser it will auto redirect www.sgtechblog.com/folder/.
HTACCESS method
If you are not using cpanel then you will need to ask your hosting provider to add it for you as I have not seen any way of adding.
If you are sure the web server is running on Apache, which is most likely. You can use this method of redirection to a particular folder.
Create a file called .htaccess, yes with a dot infront. Paste the following code inside:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?sgtechblog.com$ [NC]
RewriteCond %{REQUEST_URI} !^/folder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} ^(www.)?sgtechblog.com$ [NC]
RewriteRule ^(/)?$ folder/ [L]
Replace the characters in red with your domain name and sub-folder.
Now use your FTP program and upload to the root of your webhost account. That is in the /Public_html/. Now your domain will be redirected to your folder choice.
Webhost Recommendation
May I recommend Vodien for your Web hosting needs. Their price is reasonable and service is just great. My questions and emails have been answered almost immediately. You can contact them at support@vodien.com for any queries before proceeding to purchase their plan.
I highly recommend them for your hosting needs. Visit Vodien at Vodien.com















Leave your response!