For some reason, I can't get this rewrite to work in my Drupal installation. When I tested this in Firefox on a top directory resource, it works fine:
http://loloyd.homeip.net/ld_text_file_monitor
successfully redirected to
http://loloyd.homeip.net/index.php?q=ld_text_file_monitor
But when doing this in Firefox on a 2nd-level directory resource, it goes haywire:
http://loloyd.homeip.net/ld_text_file_monitor/downloads
gets erroneously redirected to
http://loloyd.homeip.net/ld_text_file_monitor/index.php?q=ld_text_file_monitor/index.php
and Firefox adds "Problem loading page: 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. * This problem can sometimes be caused by disabling or refusing to accept cookies."
The redirection I was aiming for was
http://loloyd.homeip.net/index.php?q=ld_text_file_monitor/downloads
It also runs amok on a top-level directory request on IE 6:
http://loloyd.homeip.net/ld_text_file_monitor/
has been lost, no clues on how the 307 redirection is taking place on IE 6 (poor HTTP/1.x compliance? never a surprise in Microsoft), page just keeps loading and loading and loading ad nauseum
My .htaccess looks like this:
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
My redirection array in my 404.php looks this way:
$redirection = array(
'^(.*)$' => 'index.php?q=$1'
);
I have copied Aprelium's PHP redirection script, replacing only the redirection array as stated herein. What can I do to correct these problems? I hope somebody can help enlighten me on this. Thanks...