force ssl


Uncategorized

This article provides examples of how to force SSL on your ASP or ASP.NET site.

web.config file
ASP.NET (not MVC 3)
ASP.NET (MVC 3)
Classic ASP
web.config file

If your website has the IIS Rewrite Module available, you can...
0 Comments
Filed in: Cloud Sites

SSL

To force SSL on your PHP site, you can use the following code in a .htaccess file:


#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

Linux and PHP

To force SSL on your PHP site, you can use the following code in a .htaccess file:


#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