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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]