safari cannot open the page because too many redirects occurred wordpress

I fixed it by using following method in .htaccess

RewriteCond %{SERVER_PORT}  !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTPS} off

is causing the error. use

RewriteCond %{SERVER_PORT} !^443$

to fix it.

Leave a Comment