Redirecting from a WWW Domain to a non-WWW Domain # 301 redirect(permanent redirect) from http://www.sample.com to http://sample.com RewriteEngine on Options +FollowSymLinks RewriteCond %{HTTP_HOST} ^www.sample.tld$ [NC] RewriteRule ^(.*)$ http://sample.com/$1 [R=301,L] Redirecting […]
This post was written by Chaitanya Singh at beginnersbook.com, if you are not reading this at beginnersbook.com, please show your support to the author by reading the article here...http://beginnersbook.com/2014/09/htaccess-rewriterule-mod_rewrite-rewritecond-redirect-301/.