Jelle Mank
Jelle Mank

Reputation: 21

Internal server error when changing to https

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?

Upvotes: 1

Views: 813

Answers (1)

Jelle Mank
Jelle Mank

Reputation: 21

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

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

Upvotes: 1

Related Questions