That's what I thought.
I'm trying to run these rewrites for my drupal 5.7 site and after turning on logging I think I've found the problem.
The rewrite:
Code:
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
The error is:
Code:
[REWRITE] Source URI: '/providers' => Result URI: 'index.php?q=/providers'
It would apear that it's grabbing the entire string of '/providers' with the forward slash, when it should only be 'providers'.
This is the exact code which works when placed in the .htacess file:
Code:
<Directory /www/domain.com/public>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>
I've tried it with and without the <directory> part,.. with and without the RewriteBase on.
I get this error in firefox:
Code:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
Any help would be greatly appreciated.
Thanks