i use this code to all traffic to https but it gives to many redirects error on my own domain althogh this code work correctly in .epizy.com domain. so tell me what is the problem
code inside my ‘domain.ml/htdocs/.htaccess’ file
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Try using this code, taken up from Aruba.it hosting guides: RewriteEngine On RewriteBase / RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
and save it as an htaccess file on yourdomain/htdocs/.
I checked your website and I also can’t seem to get rid of the redirection issue.
Can you please check your Cloudflare settings and make sure to delete or disable all page rules, automatic rewrites, automatic redirects and so on? With the right website configuration, you don’t need any of them, and tend to only cause unpredictable behavior like this.