How to fix WordPress redirect live site to localhost in login page

Today I share a simple tip of a big wordpress problem if you are new wordpress developer or freelancer like me.

The Problem is : How to fix WordPress redirect live site to localhost in login page
The Solutions is :

USE THIS CODE IN YOUR THEME FUNCTIONS FILE :

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s