tips and tricks for web developers & designers, and system & network admins

not-sexy.com

how to use parked domains as addon domains

March 8, 2007 | work, apache, linux, htaccess, mod_rewrite | 1:13 pm | |

For those not familiar with the terminology:

- http://en.wikipedia.org/wiki/Domain_parking

Many web hosts limit the number of additional domains you can have on an account, however they usually allow you to park any domain you want, regardless of the addon domains limit. Simply place this code in your .htaccess file, and you will be able to use any parked domain exactly like an addon domain.

RewriteCond %{HTTP_HOST} ^www\.vhost\.com$
RewriteRule ^/$ /vhost/$1 [L]

Happy Webmastering :)


No Comments »


No comments yet.

Leave a comment

You must be logged in to post a comment.