Comment to 'ssl enable'
Comment to ssl enable
  • I found a solution for mine.

    The following forces any http request to be rewritten using https. For example, the following code forces a request to http://example.com to load https://example.com. It also forces directly linked resources (images, css, etc.) to use https: 

    <IfModule mod_rewrite.c>

        RewriteEngine on

        RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]

        RewriteRule ^page/(.*)$  page.php?i=$1 [QSA,L]

        RewriteRule ^s/([a-zA-Z0-9_]+)/([a-zA-Z0-9\.]+)  storage.php?o=$1&f=$2   [QSA,L]

        RewriteCond %{HTTPS} !=on

        RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    </IfModule>

    • I found a solution for mine.

      The following forces any http request to be rewritten using https. For example, the following code forces a request to http://example.com to load https://example.com. It also forces directly linked resources (images, css, etc.) to use https: 

          RewriteEngine on

          RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]

          RewriteRule ^page/(.*)$  page.php?i=$1 [QSA,L]

          RewriteRule ^s/([a-zA-Z0-9_]+)/([a-zA-Z0-9\.]+)  storage.php?o=$1&f=$2   [QSA,L]

          RewriteCond %{HTTPS} !=on

          RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 

      Hi Jose,  what file do you enter the code above?  I've just started running v12.0.0,  the code still applies for this version?  thanks

      • Hello Simon !

        It should be applied in the root .htaccess file of UNA.