Xreaで、サイト内のディレクトリ構造を.htaccessで変える際の備忘録
Mixtype No.26 Last Update On 2010-01-12 2009 column
RedirectPermanent /hoge.html http://aho.com/baka/hoge.html
<META HTTP-EQUIV="refresh" CONTENT="1;URL=http://hoge.com/">
<META NAME="robots" CONTENT="noindex,follow">
Options +FollowSymLinks
RewriteEngine On
RewriteBase /hoge/
RewriteRule ^(.*)\.html$ http://www.aho.com/baka/$1.html [R=301,L]
Options +FollowSymLinks
RewriteEngine On
RewriteBase /hoge/
RewriteRule ^perl\.cgi(.*)$ http://www.aho.com/baka/perl.cgi$1 [R=301,L]
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^hoge\.com
RewriteRule ^(.*)$ http://www.hoge.com/$1 [R=301,L]
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^hoge\.com
RewriteRule ^(.*)$ http://www.hoge.com/ [R=301,L]
RedirectPermanent /baka/ http://www.aho.com/baka/
RedirectPermanent /baka/hoge.html http://www.aho.com/baka/
RedirectPermanent /baka/hoge.html http://www.aho.com/baka/
RedirectPermanent /baka/ http://www.aho.com/baka/
Options +FollowSymLinks
RewriteEngine On
RewriteBase /hoge/
RewriteRule ^perl\.cgi(.*)$ http://www.aho.com/baka/perl.cgi$1 [R=301,L,NE]
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^hoge.com$
RewriteRule /index.(.*)html$ http://www.baka.com/ [R=301,L]