PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, January 9, 2022

[FIXED] Internal server error when changing to https

 January 09, 2022     .htaccess, mod-rewrite, yii     No comments   

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
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing