Hi,
I'm trying to get mod_rewrite to work here. I have a rewrite rule in a
directory
---.htaccess---
RewriteEngine on
RewriteRule !\.(gif|jpg|png|css)$ redirect.php
---.htaccess---
and if I make a request to that directory without the ending "/" I get
the following error:
Bad Request
Your browser sent a request that this server could not understand.
And nothing appears in the error log.
After a google search I changed the rule to the following:
RewriteRule !\.(gif|jpg|png|css)$ /testdir/redirect.php
But now my browser just hangs waiting for the server :|
Can anyone explain what's happening here? Adam, oh rewrite God, do you
know what I'm doing wrong?
Donncha.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!