On Thu, Jan 13, 2011 at 5:07 AM, Jørn <apache.user@xxxxxxxxxxxxxxxx> wrote: > Hello, > > I got a problem with using RedirectMatch. > > The following RedirectMatch line works well: > RedirectMatch 301 /Foto/Album.*img_([0-9]*)\. > "http://www.dahl-stamnes.net/Foto/r_img.php?img=$1" > > But now I want to add another RedirectMatch: > > RedirectMatch 301 ^/Foto/show.*album\=(.*)$ > "http://some.other.url/album.php?album=$1" > > But it does not match. After restart I tried but still get the same page. The > logfile says: > > 192.168.2.10 - - [13/Jan/2011:11:01:22 +0100] > "GET /Foto/show.php?album=some_album HTTP/1.1" 200 15850 > > Any way of debugging how the server handles RedirectMatch's? > Any suggestions what could be wrong with the new statement? I don't think you can match against the query string -- you'll need mod_rewrite. --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx