2
votes

I made a url change from my Wordpress site to use "https: //", When adding the change both in Settings> General Options as well as in the .htaccess file, I return internal error on the server.

The apache log has the following information:

[Wed Oct 03 07:29:10 2018] [error] [client 177.73.98.2] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., Referer: https://meusite.com.br/

 My .htaccess I put the following rule to force SSL

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^ index \ .php $ - [L]
RewriteCond% {REQUEST_FILENAME}! -F
RewriteCond% {REQUEST_FILENAME}! -D
RewriteRule. /index.php [L]
RewriteEngine On
RewriteCond% {SERVER_PORT} 80
RewriteRule ^ (. *) $ https://meusite.com.br/$1 [R, L]
</ IfModule>`
1

1 Answers

2
votes

Don't make changes to your .htaccess file. The reason you ran into this issue is because the WordPress Address (URL) and Site Address (URL) setting inside WordPress Admin is still pointing to http version of your URL.

What happens is, when a visitor visits your website, .htaccess rule redirects his request to https version and then loads WordPress, which recognizes that the settings point to http version and thus triggers a redirect to http version. This redirect, once again, gets caught by the .htaccess rule and goes on and on until timeout.

What you need to DO:
1. Remove any modification to .htaccess file.
2. Update WordPress Address (URL) and Site Address (URL) in your Wordpress Admin to point them to the https version of URL.
3. Install WordPress HTTPS (SSL) Plugin