Free Turnkey Website*
Several Designs
Several Business
No Experience Needed
Drop Ship Inventory
 
Knowledge Base 


Search the Knowledge Base for:  
Here you can search and view our site Knowledge Base.
To find a specific article, use KB-article number format (ex. KB-1)

 
 Article number: kb-42
Q. How to set up a website that is only accessible using SSL. (https://)

A. Applicable to Linux Packages only.
You should first have a SSL certificate installed on your domain.
Create a file named .htaccess in the directory your domain is pointing to and place
the following code:

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.domain.com/$1 [R]

(substitute www.domain.com with your domain)

Note: Domains can have SSL certificates installed on www.domain.com or just
domain.com. Please check what you have and then substitute it accordingly.
(https://www.domain.com/$1 [R] or https://domain.com/$1 [R])

Applicable to MS Packages only.
You should first have a SSL certificate installed on your domain.
Write a redirect script, that redirects all requests to your website to https://


<%EnableSessionState=False
host = Request.ServerVariables("HTTP_HOST")

if host = "usa-test.com" or host = "www.usa-test.com" then
response.redirect("https://www.usa-test.com/index.html")

else
response.redirect("https://www.usa-test.com/error.htm")

end if
%>



This script needs to be named default.asp and placed in the folder your
domain is pointing to.

This page has been viewed 507 times



Return to Search

Testimonials
Signature Homes
I'm extremely happy with the service and support from My Web Hosting Provider. You folks answer questions promptly (billing, sales or support) and the tech support is far better than what I see from other hosts. The fact that I've had my site for almost a year without any crashs or down time is very impressive."
www.signaturehomedesigns.com
Packages Include
 
Plesk 7.5 Reloaded
Support of aacPlus Streams
100 Mbps Servers
High Speed Global Network
Free Customer Support
Flexible Billing Options
FrontPage Extensions
Server Side Includes
Support of aacPlus Streams
  and much more!
   
 
Special Offer
  “Gone are those days of sacrificing quality for cost. No longer will your business miss the features .”

read more>>

 
 
HOME | HOSTING | DOMAINS | CREATE ACCOUNT | SUPPORT | LOGIN | CONTACT US
Copyright © 2006 My Web Hosting Provider. All rights reserved.  v2.7.5