mod_rewrite redirect to subdir

2 posts / 0 new
Last post
Offline
Last seen: 12 years 3 months ago
Joined: Dec 20 2003 - 10:38
Posts: 20
mod_rewrite redirect to subdir

Hey...

I'm trying to get a second domain set up for my site and I want to get the two domains to direct to different pages... basically, I want the following.

http://elgatodesigns.net/* --> /home/www/elgatode/* --> http://elgatodesigns.net/*

http://pr0p.net/* --> /home/www/elgatode/propNet/* --> http://pr0p.net/propNet/*

The thing is, right now, they both point to /home/www/elgatode/ and this is a hosted site, so I can't add VirtualHost directives.

I need a mod_rewrite expression that'll filter requests to pr0p.net/* and push them to pr0p.net/propNet/*, without affecting elgatodesigns.net

~n

Offline
Last seen: 12 years 3 months ago
Joined: Dec 20 2003 - 10:38
Posts: 20
Crap... I also forgot to ment

Crap... I also forgot to mention that any requests to pr0p.net/cgi-bin/ need to be left alone... else YaBB won't work.

~n

Log in or register to post comments