mod_rewrite

While making a server change today, I was reminded of a trick that I used back when getting a shared hosting account with unlimited domains was unheard of and add-on domains used to cost an additional monthly fee.

Athough there was a charge for more than one "active" domain on the account, my hosting company didn't charge for parked domains. And I figured out a way to get those parked domains to act just like add-on domains.

The "trick" involves using mod_rewrite to redirect the incoming request to the appropriate directory, by adding this to your root .htaccess file:

Blah, Blah, Blah

I only recommend products and services I like (and mostly use) and which I believe will benefit my readers. The FTC (and possibly other entities) would like me to tell you, though, that you can pretty much assume that any external links from DonMorris.com are likely to be affiliate links and I may make a commission for referring you to such products and services.

Text on this site by Don Morris is licensed under a Creative Commons License. Articles under any other name and all images are the property of their respective author/creator.