301 Permalink Redirect from address without www to same address with www

/ Published in: Apache
Save to your folder(s)

canonical redirect at .htaccess

Copy this code and paste it in your HTML
  1. Options +FollowSymlinks
  2. RewriteEngine on
  3. RewriteCond %{HTTP_HOST} ^domain.com$
  4. RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

URL: http://www.proseoblogger.com/kak-ustanovit-301-redirect/

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.