We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37031
    • 93 Posts
    Hi everyone!

    When uncommenting the lines in the htaccess file, do I need to change the https to http? For example, my site doesn't use an SSL certificate and I would like all URLs to use the www prefix. I've uncommented the following lines in the htaccess file:

    RewriteCond %{HTTP_HOST} !^$
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteCond %{HTTP_HOST} (.+)$
    RewriteRule ^(.*)$ https://www.%1/$1 [R=301,L] .

    Do I also need to change https to http?

    Thanks!

    Jeff
      • 46886
      • 1,154 Posts
      My guess is you don't need to change it, but probably you should

      Is hard to get https in the first place, its easy to be broken and there will likely be a warning in your browser, just up next to the url. If there is no cert there then it will not be meaningful.