Sunday, January 9, 2022

[FIXED] Internal server error when changing to https

Issue

My Yii site is giving an internal server error 500 after changing http to https in .htaccess when entering this line of code:

RewriteCond %{SERVER_PORT} 80
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L] 

I have a valid SSL because my WordPress sites are working fine with https.

Also my site is a subdomain, but I don't think that would be the problem.

What can it be?


Solution

Errorlog: Request exceeded the limit of 10 internal redirects due to probable configuration error.

Fixed issue: Had to insert "rewritebase /" in the .htaccess file.



Answered By - Jelle Mank

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.