php - .htaccess http to https redirecting too many times -


my domain www.supergenscript.com. hosted on www.easycloud.us , dns has been configured using cloudflare. have following code in .htaccess file.

rewriteengine on rewritecond %{server_port} ^80$ rewriterule ^(.*)$ https://%{server_name}%{request_uri} [l,r=301] 

nothing except there in .htaccess file. complete code .htaccess has right now. using code purpose redirect http https automatically. changing http https index page not loading. instead, browser keeps on loading , after spending amount of time gives error.

here error received on google chrome browser

this page isn’t working  www.supergenscript.com redirected many times. try clearing cookies. err_too_many_redirects 

please me find solution problem. getting frustrated.

check one

rewriteengine on rewritecond %{https} off rewriterule ^(.*)$ https://%{http_host}%{request_uri} [l,r=301] 

or one

rewriteengine on rewritecond %{https} off [or] rewritecond %{http_host} !^www\. rewriterule ^ https://www.supergenscript.com%{request_uri} [nc,l] 

Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -