How to host multiple domains in a single hosting package.
In our real time,we work mostly small websites where limited static files are hosted. So in that case we waste additional money for less than a Mb files. Here we learn simple hack how to add multiple sites to single account using single .htaccess file.
For example, if you are hosting your domain name "maheshchari.com" with us and added a Domain Alias for "mahesh.com", then http://www.maheshchari.com and http://www.mahesh.com would take a visitor to the exact same pages of maheshchari.com website. http://maheshchari.com/somefile.html would bring someone to the exact same page as http://mahesh.com/somefile.html.
Using this method, you can host an additional website within your account for each Domain you add. Or you can point the mahesh.com same as maheshchari.com,So you are adding "A" same for both domains in DNS management .
After that This is a custom configuration requiring a couple extra steps.
After Pointing both domain to same Server IP , then place an .htaccess file in /htdocs/www of the following example format:
RewriteEngine On
RewriteCond %{HTTP_HOST} mahesh.com$ [NC]
RewriteCond %{REQUEST_URI} !^/mahesh/.*$
RewriteRule ^(.*)$ /mahesh/$1Then, upload your HTML files maheshchari.com to /htdocs/www/ and your HTML files for mahesh.com to /htdocs/www/mahesh
Remeber you can’t add emails for mahesh.com for that .
Popularity: 4% [?]









Related Articles
2 users responded in this post
[...] is the original post: How to host multiple domains in a single hosting package | Php … test Filed under Domains, Web hosting | Tags: being-more, companies-claim, current-web, Domains, [...]
[...] Go here to read the rest: How to host multiple domains in a single hosting package | Php … [...]
Leave A Reply