LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mod_Rewrite help in Apace 1.3... (https://www.linuxquestions.org/questions/linux-software-2/mod_rewrite-help-in-apace-1-3-a-81138/)

vrillusions 08-11-2003 09:18 PM

Mod_Rewrite help in Apace 1.3...
 
First off the web server is still in the 1.3's somewhere, not sure where, just that it's not 2.0

I have it setup so that http://gallery.vrillusions.com/ goes to http://www.vrillusions.com/ That's setup in DNS and no problems. What I want to do is have it so that if someone goes to http://gallery.vrillusions.com/ it redirects them to http://www.vrillusions.com/gallery/ while keeping gallery.vrillusions.com in the address bar. This seemed like a prime candidate for mod_rewrite and I thought it would be easy, but I've spent the last two hours on this and not having much luck. Here is what I have so far:
Code:

#gallery.vrillusions.com mirror
RewriteCond %{HTTP_HOST} ^.*gallery.vrillusions.com.*$ [NC]
RewriteRule ^.*gallery\.vrillusions\.com/(.*)$ http://www.vrillusions.com/gallery/$1

When I go to that page, I just get the main vrillusions.com page. BTW, the RewriteEngine On statement is further up the .htaccess file since I also have some anti-image-stealing stuff in there. Any help would be appreciated. Thanks.


All times are GMT -5. The time now is 01:00 PM.