26 Apr 2021

Wordpress - Always redirects to HTTPS in Local machine even if it is not configured

When you want to test the word press site in local, you might come across this situation that it always redirects to HTTPS page and does not work.


Possible reasons are

1. .htaccess file configuration is set to redirect to HTTPS always

2. Server configuration is set to redirect to HTTPS always (Apache / Nginx)

3. A plugin might be causing this. Example plugins are listed below.

    3.1 really-simple-ssl


Also you may add the below two lines in your wp-config.php file

define('FORCE_SSL', false);
define('FORCE_SSL_ADMIN', false);

No comments:

Post a Comment