[users@httpd] RedirectMatch wrongly matching single chars of a string?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi List, I've got following problem:
I want to redirect all requests like
site.com/something,
site.com/something/someotherthing,
site.com/something/xyz/someotherthing to site.com/something.html, 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)]*)/? http://www.site.com/$1.html It works fine for anything after site.com/ NOT containing g, i, f, j, p or .
e.g.:
site.com/xyzxyz -> site.com/xyzxyz.html
site.com/xxxx/yxyx -> site.com/xxxx.html but: site.com/xxgxx -> site.com/xx.html 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: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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux