Weaver Tips

The best tips for working with RapidWeaver

Force www

Force www

April 30th, 2018 by Gregory

To force users to the www version of your site, simply add the following to your .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

When users visit your site, they will be redirected from http://example.com to http://www.example.com.