You are Here:
FAQ
Scripting & Programming
.htaccess
Article #8
How do I redirect traffic to my SSL secured site?For Linux Packages You should first have an SSL certificate installed on your domain. You will need to either create a .htaccess file in the root of your webspace or if you already have one, edit the file. Take a look at the example below for reference.
A few notes You must add the line RewriteEngine On to enable rewrite rules. Do not add this line a second time if it is already present in the .htaccess file. Replace yourdomain.com in red above with your own domain. The last line must contain the correct domain or subdomain that is used with the SSL. This may be yourdomain.com, www.yourdomain.com or subdomain.yourdomain.com.To find out the correct domain or subdomain that is using the SSL, log into your 1&1 Control Panel and select Domains -> Dedicated SSL Certificate. ![]() For MS Packages You should first have an SSL certificate installed on your domain. Write a redirect script, that redirects all requests to your website to https://
This script needs to be named default.asp and placed in the folder your domain is pointing to. Disclaimer: 1&1 provides the scripts and related information on this page as a courtesy, subject to 1&1's General Terms and Conditions of Service (the "GT&C"). As set forth in more detail in the GT&C, the scripts and information are provided "as-is", without any warranty, and 1&1 is not liable for any damages resulting from your use of the scripts or information. |
© 2012 1&1 Internet Ltd - About 1&1 Internet