View Single Post
  #4 (permalink)  
Old 09-29-2005, 06:39 PM
Technophile's Avatar
Technophile Technophile is offline
Super Moderator
Great Diviner
 
Join Date: Sep 2002
Location: Everywhere
Posts: 3,811
Rep Power: 10
Technophile is on a distinguished road
Send a message via AIM to Technophile Send a message via MSN to Technophile Send a message via Yahoo to Technophile
Default

No, it won't. Like I said it was a guess and I'd never used mod rewrite before. I think what you need to do is actually something like this:

Code:
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^$ subdir/
The FollowSymlinks option must be enabled for any rules to work. It's probably already enabled, but it doesn't hurt to specify it here as well. RewriteEngine On turns rewrite on of course. RewriteRule matches "" (nothing) after / (http://mydomain.com/), and redirects it to "subdir/". The URL that the user sees in their browser is still http://mydomain.com/. This time I had a way of testing it. It worked for me.
__________________
Your sig is cooler than mine.
Reply With Quote