KB Knowledge Base
How To Redirect HTTP Traffic To HTTPS Using An .htaccess File

Article By lee


img

Apache htaccess for BIPmedia.com VPS Virtual Private Servers The below code when added to an .htaccess file will automatically redirect any traffic destined for http: to https:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]




Tags: , , , , , ,

Spin up a VPS server in no time flat

Simple setup. Full root access. Straightforward pricing.

DEPLOY VPS SERVER

Leave a Reply



Feedbacks