Go Daddy: Multiple Domains in Economy Plan

Go Daddy charges more to host multiple domains on their hosting plans. They will allow you to point unlimited domains to your html root in the base plan, but they charge extra to point these domains to their own directories.

Well, this is easy to circumvent with a little code in your .htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^YOURDOMAIN.COM$ [NC]
RewriteCond %{REQUEST_URI} !^/SUBDIRECTORY/
RewriteRule ^(.*)$ /SUBDIRECTORY/$1 [L]
</IfModule>

Simply replace YOURDOMAIN.COM and SUBDIRECTORY with your alternate domain and a subdirectory you create in your root. Voila! Requests to your alternate domain will serve the requested document from their own directory.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>