Pound のリダイレクトの扱い
Pound ちゃんのリダイレクトのお話。パラメータ引き継げるのと引き継げないのがある。
- Redirect 文のダブルクォーテーション内 URL を最後 / つけないと、アクセスした時のパラメータを引き継げる。
Service HeadRequire "Host: www.example.com" Redirect "http://redirect.example.com" END 例) http://www.example.com/example -> http://redirect.example.com/example
- Redirect 文のダブルクォーテーション内 URL を最後 / つけると、アクセスした時のパラメータを引き継がない。
Service HeadRequire "Host: www.example.com" Redirect "http://redirect.example.com/" END 例) http://www.example.com/example -> http://redirect.example.com/
man pound で redirect のところに書いてあるの見つけなかったらやばかった。