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

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
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

Donncha O Caoimh donncha.ocaoimh at tradesignals.com
Tue Mar 5 11:16:02 GMT 2002


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.




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