force ssl


Uncategorized

Below are three examples of how to force SSL on your ASP or ASP.NET site.

web.config
If your website has the IIS Rewrite Module available*, you can use rewrite rules in your web.config to force SSL on all pages:
<?xml version...
0 Comments
Filed in: Cloud Sites

Linux and PHP

Below are two samples of what you can use in a .htaccess to force SSL on your PHP site:
#Force SSL on entire site
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:HTTPS} !on [NC]
RewriteRule ^(.*)$ https://(YOURDOMAIN)/$1 [R,L...
9 Comments
Filed in: Cloud Sites

SSL

Below are two samples of what you can use in a .htaccess to force SSL on your PHP site:
#Force SSL on entire site
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:HTTPS} !on [NC]
RewriteRule ^(.*)$ https://(YOURDOMAIN)/$1 [R,L...
9 Comments
Filed in: Cloud Sites