Works fine for me Donncha. The bad request seems to hint towards
permissions, particularly Apache permissions, have you checked them? If it's
not permissions, try switching rewrite logging on, to about level 5, see
what that says.
> -----Original Message-----
> From: webdev-admin at linux.ie [mailto:webdev-admin at linux.ie]On Behalf Of
> Donncha O Caoimh
> Sent: 05 March 2002 11:16
> To: webdev at linux.ie> Subject: [Webdev] mod_rewrite errors
>> I'm trying to get mod_rewrite to work here. I have a rewrite rule in a
> RewriteEngine on
> RewriteRule !\.(gif|jpg|png|css)$ redirect.php
>> 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?
> Webdev mailing list
>Webdev at linux.ie>http://www.linux.ie/mailman/listinfo/webdev>
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!