0

I already have base url www.example.com and I want to have base url like this: https://www.example.com

This is in my httaccess file:

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

But when i access to my page with Chrome, its gives error:

The example.com Web has redirected you too many times.

After that code I have some other codes in .htaccess - maybe that cause problem?

 <IfModule mod_rewrite.c>
  -----
  </IfModule>

How to solve this error?

Narendra Jadhav
  • 10,052
  • 15
  • 33
  • 44
Copen
  • 9
  • 2

0 Answers0