Billing Linux cPanel Windows Control Panel Client Voip ms sql webadmin ms sql backup mysql webadmin Server Status

Main Menu
  • How to force redirect HTTP to HTTPS

    No comments April 3rd, 2018 89

    Forcing or redirecting your visitors to https automatically is the best way to make sure that your website can only accessed through SSL and that all traffic to and from your website is secured. We recommend that all customers who use SSL make sure that their sites contain one of the below rules.

    IIS – web.config or Helicon Ape

    For URL Rewrite, add the following rewrite rule to your web.config file’s <rewrite> section, this rule must be first in the rewrite section…

    1
    2
    3
    4
    5
    6
    7
    8
    
    <rule name="HTTP to HTTPS Redirect" stopProcessing="true"> 
        <match url="(.*)" /> 
            <conditions> 
                <add input="{HTTPS}" pattern="off" ignoreCase="true" />
            </conditions> 
            <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
        </match>
    </rule>

    For Helicon Ape, add these lines to the .htaccess file in your wwwroot under the RewriteEngine On directive

    1
    2
    3
    
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    Apache – .htaccess

    Add these lines to your site’s root .htaccess file directly under the RewriteEngine On directive

    1
    2
    3
    
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading...

No comments yet

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Uptime 100%

MoneyBack Gurantee

Why Choose Us