Welcome Guest, Not a member yet? Register   Sign In
Re-direct http:// to https:// for online documentation
#2

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]
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Re-direct http:// to https:// for online documentation - by InsiteFX - 04-11-2023, 11:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB