Forum Moderators: phranque

Message Too Old, No Replies

dynamic sub domain to folder

dynamic sub domain to folder

         

nj_trading

6:34 pm on Jan 11, 2010 (gmt 0)

10+ Year Member



Hey, I hope someone can help.

Ok I have a domain test.domain.com I have the DNS A recorder setup like this:

test.domain.com A 192.321.321.321

what I need to do is setup some mod_rewrite to when the address

test.user.domain.com get pointed to test.domain.com/user

any help on this will be greatly appreciated.

jdMorgan

10:52 pm on Jan 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try using the site search link at the top of this page to turn up several useful previous threads by adding "rewrite" and "RewriteCond %{HTTP_HOST}" to the title of your thread.

Jim

g1smd

3:01 am on Jan 12, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do you want an external redirect to a new URL, or a rewrite processed for the original URL request such that content is fetched from a different place in the server? The difference is critical.

nj_trading

3:27 am on Jan 12, 2010 (gmt 0)

10+ Year Member



Yes it would be on the same server so it would just be a rewrite of the url. thanks again guys