On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • 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?


    • 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.