Changes between Version 1 and Version 2 of TipAndDoc/network/httpd/URLRedirect


Ignore:
Timestamp:
Dec 16, 2010 11:20:02 PM (13 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/network/httpd/URLRedirect

    v1 v2  
    44 * http://httpd.apache.org/docs/mod/mod_alias.html#redirect 
    55 * http://httpd.apache.org/docs/mod/mod_rewrite.html 
     6 
     7 * [http://www.pictnotes.jp/?p=135 Pictnotes » RedirectMatch のリダイレクト先URLで、&(アンパサンド)がある場合] 
     8  * RedirectMatch のリダイレクト先のURLの中に、&(アンパサンド)がある場合、置換されてしまう。 
     9{{{ 
     10RedirectMatch ^/test/?  http://www.pictnotes.jp?param1=hoge&param2=fuga 
     11 
     12RedirectMatch ^/test/? http://www.pictnotes.jp?param1=hoge/test 
     13 
     14RedirectMatch ^(/test/?)  http://www.pictnotes.jp?param1=hoge&param2=fuga 
     15 
     16RedirectMatch ^(/test/?)  http://www.pictnotes.jp?param1=hogeparam2=fuga 
     17(&が消えている状態) 
     18}}} 
     19  * &を使うためには、エスケープしてあげればOK 
     20{{{ 
     21RedirectMatch ^(/test/?)  http://www.pictnotes.jp?param1=hoge\&param2=fuga 
     22& -> \& 
     23}}} 
     24 
     25 * [http://ysmt.blog21.fc2.com/blog-entry-216.html Freak: mod_rewriteで動的ページを静的ページっぽいURLにする]