RewriteEngine on
RewriteBase /
RewriteRule 転送元ファイル名.html$ http://転送先URL/転送先ファイル名.html [R=301,L]
RewriteEngine on
RewriteBase /
RewriteRule ^転送元ディレクトリ名/(.*)$ http://転送先URL/転送先ディレクトリ名/\ [R=301,L]
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www.転送元URL)(:80)? [NC]
RewriteRule ^(.*) http://www.転送先URL/\ [R=301,L]
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !(^/除外ディレクトリ名/)
RewriteRule ^$ http://www.転送先URL/ [R=301,L]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ドメイン名\.com
RewriteRule ^(.*) http://サブドメイン名.ドメイン名/\ [R=301,L]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.ドメイン名\.com
RewriteRule ^(.*) http://ドメイン名/\ [R=301,L]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ドメイン名\.com
RewriteRule ^(.*) http://www.ドメイン名/\ [R=301,L]
RewriteEngine On
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://ドメイン名/\ [R=301,L]
RewriteEngine on
RewriteCond %{THE_REQUEST} ^.*/index.(html|php)
RewriteRule ^(.*)index.(html|php)$ http://%{HTTP_HOST}/\ [R=301,L]
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://ドメイン名/\ [R=301,L]
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteEngine On
RewriteCond %{http_host} ^www.転送元URL.com
RewriteRule ^(.*)$ http://www.転送先URL.com/\ [R=302,L]
RewriteEngine On
RewriteRule ^転送元URL\.html$ http://www.転送先URL.com/ [R=302,L]