Crystal Clear Web Hosting Solutions

You are here: Portal Home > Knowledgebase > Server Administration > How Do I Redirect To Secure Pages Using htaccess?

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
Print this Article

Powered by WHMCompleteSolution

Rapid SSL Secure Transaction This order form is provided in a secure environment and to help protect against fraud your current IP address is being logged.