Quick Tips / Wordpress · February 12, 2019 1

Local WordPress installation keeps redirecting to SSL? Try these.

Step 1: Check if it’s a .dev domain

Many of us like to name our virtuals hosts somehitng like example.dev. There is already a registered TLD for .dev and Chrome/Firefox automatically redirects those domains to https. So, if you’re using that, change it to something like .local or .test.

Step 2: Check wp-config.php for force redirect to SSL

Find these and set them to false:

define( 'FORCE_SSL_LOGIN', true ); // set to false
define( 'FORCE_SSL_ADMIN', true ); // set to false

Then try an incognito window or a different browser.

Step 3: Check the .htaccess or nginx .conf file

Find if there are http to https redirects there and comment them out.

Step 4: Check if SITE URL and HOME are set to non-https

You can go to the wp_options table (replace wp_ with table prefix) and change them to non-https. Or you can set them in wp-config.php:

/* That's all, stop editing! Happy blogging. */

These should help.