Crystal Website Hosting and Development
Please Login or Register

Knowledgebase

How Do I Redirect To Secure Pages Using htaccess?

Place an .htaccess file in the directory you wish to make redirect to https://.  In this file put the following lines:

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

Upload the file to your server in the secure directory.  You must have an active SSL Certificate installed.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter