.htaccessを使ってURLをリダイレクト
- 2006.11.01
- プログラミング
![.htaccessを使ってURLをリダイレクト](https://perl.no-tubo.net/wp-content/uploads/2010/11/clicktx_tech_memo-890x500.jpg)
リダイレクト元のディレクトリが sample/ だとしてリダイレクト先がhttp://www.hogehoge.com/だとすると以下のように.htaccessに書き込み sample/ディレクトリにアップロードします。
Redirect permanent /sample/ http://www.hogehoge.com/
-
前の記事
改行コードの変換 2006.10.31
-
次の記事
mod_rewriteを活用する 2006.11.05