httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] mod_rewrite regex help
Date Tue, 21 Dec 2004 14:03:01 GMT
On Mon, 20 Dec 2004 21:00:56 -0500, Matt Warden <> wrote:
> RewriteEngine On
> RewriteRule ^/collab.*$ $1 [NC,L]
> RewriteRule \.(php|htm|html)$ /server.php?q=$1 [NC,L]
> RewriteRule ^[^\.]*$ /server.php?q=$1 [L]

It looks like you want
RewriteRule (.*\.php|htm|html)$ /server.php?q=$1 [NC,L]
RewriteRule ^[^.]*$ /server.php?q=$1 [L]

for the last two lines.  (Note that special characters do not need to
be escaped inside character classes.)

> But, my main question has to do with th is just not working at all. I
> tested my regex's and they seem to match correctly, but I am getting
> 500 errors in the apache logs when I test things.

What does the error log say?  What does the RewriteLog say?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message