RedirectMatch

Apache の RedirectMatch でリダイレクトする先の URL に & が入ってしまっている場合に、
& が old-URI に置換される。

つまり

# Format: Redirect old-URI new-URL
RedirectMatch ^/blosxom/$ http://foobar/blosxom/R&D/barbaz/...

となっていると、
http://foobar/blosxom/RblosxomD/barbaz/...
へリダイレクトされてしまう。

& を URLencode して%26 とかしてみたけど、見当違いで、
new-URL で R\&D と書けばよいのであった。

まぁ、& なんか使わずにすますというのが幸せの秘訣である。

About this Entry

This page contains a single entry by dxy published on 2004年11月 5日 18:05.

smartctl was the previous entry in this blog.

ビル内配線 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 5.01