CodeIgniter Forums
Re-direct http:// to https:// for online documentation - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Re-direct http:// to https:// for online documentation (/showthread.php?tid=87316)



Re-direct http:// to https:// for online documentation - joho - 04-06-2023

Not sure if there's a reason for this, but it seems like the user guide URL http://codeigniter.com/user_guide/general/common_functions.html does not automatically re-direct to https://codeigniter.com/user_guide/general/common_functions.html.

Just my two cents ...

(and thank you for documentation that makes sense)


RE: Re-direct http:// to https:// for online documentation - InsiteFX - 04-11-2023

Code:
Here is an excellent method for requiring SSL:

# require SSL
SSLOptions +StrictRequire
SSLRequireSSL
SSLRequire %{HTTP_HOST} eq "domain.tld"
ErrorDocument 403 https://domain.tld

# require SSL without mod_ssl
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]



RE: Re-direct http:// to https:// for online documentation - joho - 04-13-2023

Not sure to whom that was directed, but my post was intended for those responsible for the site(s) that hold CI documentation :-)