formasfunction Posted May 20, 2007 Share Posted May 20, 2007 I have the following RewriteRule working within an htaccess file in the root directory of a site: <IfModule mod_rewrite.c> Options FollowSymLinks RewriteEngine on RewriteRule ^direct/(.+) /index.php?q=$1 [L] </IfModule> I'm trying to get it to work without the need to reference the directory "direct" on the first part of the rule and instead reference the root: RewriteRule (.+) /index.php?q=$1 [L] For some reason it's not working as expected. I know that if you're referencing the folder in which htaccess resides then you don't need the leading "/". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.