Forum Moderators: bakedjake

Message Too Old, No Replies

How to direct a domain name to a specific folder using .htaccess

         

joyryde

5:08 am on Sep 16, 2005 (gmt 0)

10+ Year Member



Hi - My terrible hosting company has changed the "add-on" domain fee (to have multiple sites hosted under one hosting account) from $10 per domain for the life of the domain, to $2.95 a month per domain.

What has now happened is that unless you pay them $2.95 a month, all domains that used to be active on a single hosting account, now point to the master domain of that account rather than to each of their own sub-folders like they did before.

I need a way to direct a domain sto a specific folder under my master domain using .htaccess so that users don't see the master domain for all domains, they see each specific website.

Is this possible, and can you give an example?

brakthepoet

6:10 pm on Sep 16, 2005 (gmt 0)

10+ Year Member



I don't know the answer to your question, but you might get a better response if you post this question in the Apache Web Server [webmasterworld.com] sub-forum.

A Short Introduction and Guide to Apache Mod Rewrite [webmasterworld.com], Beginning Mod_Rewrite [webmasterworld.com], and Mod_Rewrite & Regular Expressions [webmasterworld.com] should give you a good place to begin working towards a solution.

Frequent

7:06 pm on Sep 16, 2005 (gmt 0)

10+ Year Member



I can't give you a good answer either, but I would guess that the host probably has this function disabled in htaccess since they are trying to monetize it. That proved to be the case in one of my accounts. The difference being that they specifically stated 1 account 1 content in their terms. I didn't even have the option to pay extra to host multiple sites, and I certainly would have at the time.

Freq---