Redirect using .htaccess
mywebsite.com -> www.mywebsite.com(rewrite has to be on)
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mywebsite.com
RewriteRule ^(.*)$ http://www.mywebsite.com/$1
Single file redirects:
redirect 301 /index.php http://www.mywebsite.com/home/
redirect 301 /index.html http://www.mywebsite.com/home/
redirect 301 /index.htm http://www.mywebsite.com/home/
页:
[1]