Skip to content

Force www on a web page using htaccess

RewriteEngine on
RewriteCond %{HTTP_HOST} ^poopcode\.com [NC]
RewriteRule ^(.*)$ http://www.poopcode.com/$1 [L,R=301,NC]
See also  Force https on a web page using htaccess

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.