“www.youdomain.com” を “yourdomain.com” へ Redirect する場合 .htaccess に
[code:text]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.yourdomain\.com)(:80)? [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://yourdomain.com/$1 [R=301,L]
[/code]