2011-06-10 Apacheのリダイレクト機能=>僕が知っている3つ方法の紹介 Apache 1.Aliasディレクティブの使用 Alias /foo/bar /baz 説明:クライアントからhttp://sample.com/foo/bar/tst.htmlというリクエストが来たときにapacheはサーバー上の/baz/tst.htmlというファイルにマッチしてくれる。まあ〜DocumentRoot以外のファイルのマッチしてくれるのが嬉しいところです。 2.Redirectディレクティブの使用 Redirect /service http://foo2.bar.com/service 説明:クライアントからhttp://sample.com/service/tst.htmlというリクエストが来たときにapacheはhttp://foo2.bar.com/service/tst.htmlに飛ばしてくれる。よくサーバーの移行した時によく使われている。 3.mod_rewriteモジュールの使用 「こちらは複雑URLの書き換えに使用されている」