httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
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 <mwarden@gmail.com> 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?

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message