Redirect loop when https

by user3774771   Last Updated September 12, 2018 15:10 PM

I added ssl-certificate on my Joomla web-site. My actions:

  1. Add certificate data to hosting
  2. In configuration check SSL for entire site
  3. In configuration.php rewrite live_site as https://mysite.com

And it's all good, web-site work with https, but I need to redirect site from http to https when user enter. For this I add to .htaccess next rule

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]

And after this I have an redirect loop error.

I tried different variants of rewrite rules in htaccess, but nothing help. Need an advice please.

Joomla 3.7.4 PHP 5.6.30 Server - Linux, Apache 2.0



Related Questions


Redirecting site to subfolder

Updated May 06, 2016 08:04 AM


Unable to redirect directory to root using .htaccess

Updated November 19, 2017 14:10 PM

How can I redirect old domain to a new domain?

Updated April 09, 2016 08:04 AM

Redirect URLs using Redirect component or htacess

Updated June 08, 2015 22:04 PM