httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Björn Heller" <>
Subject [users@httpd] RedirectMatch wrongly matching single chars of a string?
Date Mon, 30 Jan 2006 23:47:20 GMT

Hi List, 

I've got following problem: 

I want to redirect all requests like,, 

to, no matter if or without trailing slash BUT NOT 
if the URL is a .gif, .jpg etc. 

So I've got the following RedirectMatch: 

RedirectMatch permanent ^/(.[^/(\.gif)(\.jpg)]*)/?$1.html 

It works fine for anything after NOT containing g, i, f, j, p or . 

e.g.: -> -> 

but: -> although I bracketed \.gif etc. 
What's wrong? Can anyone make a suggestion? 

greets, hb.

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