|
|
.htaccess基本機能によるリダイレクトRedirect permanent 命令は、「301 Moved Permanently(永久に移転)」を使用してリダイレクトを行います。 ○用法1:個別ファイル指定
┌────────────────────────│Redirect permanent /blue/example1.html http://new.com/cyan/example2.html │Redirect permanent /blue/example2.html http://new.com/cyan/example5.html └──────────────────────── Redirect permanent 移転元パス 移転先URL ○用法2:ディレクトリ一括指定
┌────────────────────────│Redirect permanent /blue/ http://new.com/cyan/ │Redirect permanent /red/ http://new.com/pink/ └──────────────────────── Redirect permanent 移転元パス 移転先URL ○用法3:ディレクトリ一括指定+個別ファイル指定
┌────────────────────────│Redirect permanent /blue/example2.html http://new.com/pink/example.html │Redirect permanent /blue/ http://new.com/cyan/ └──────────────────────── Redirect permanent 移転元パス 移転先URL 前から順番に処理されますので、上記の場合、順序に意味があります。
※ 本資料(「SEOの施策(方法)とSEOツールの紹介」または「SEOの用語集」)の最終更新は2009年の夏です。
そのため一部にリンク切れや古い情報を含むことをご承知おきください。
|
|