CodeIgniter / Htaccess / PHP.htaccess redirect http to https November 8, 2017 Chandan SharmaComment on .htaccess redirect http to httpsuse the following to redirect all pages of my domain from http to https: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Share this:FacebookX