BIP KB Tag: mod rewrite

How To Redirect Non-www Traffic To www Using mod_rewrite

This is an example using the mod_rewrite Apache module to force all traffic to your site to . This can be useful in an SSL context, as well as for SEO purposes. Create a .htaccess file in your web root (public_html for cPanel servers) and add the following lines: RewriteEngine On RewriteCond %{HTTP_HOST} ^ RewriteRule (.*)$1 [R=301,L] ...
By tasia, January 24, 2015