LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[Webdev] mod_rewrite errors

[Webdev] mod_rewrite errors

adam lists at spamfilter.cc
Tue Mar 5 11:31:56 GMT 2002


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.

adam


> -----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
>
>
> 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.
>
> _______________________________________________
> Webdev mailing list
> Webdev at linux.ie
> http://www.linux.ie/mailman/listinfo/webdev
>





More information about the Webdev mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell