Monday, March 24, 2014

Change localhost path after live in Wordpress

Many Wordpress Developers dont know how to change localhost path after moved webiste from local to live.

Let's take a look at how to change path:

Step 1: Login into your Wp-admin
Step 2: Goto Apperance -> Select Editor
Step 3: Select your theme in right Side(Select your theme to edit)
Step 4: Select functions.php
Step 5: Add these lines top of the file.
update_option('siteurl','http://www.example.com/');/*Your domain name*/
update_option('home','http://www.example.com/');/*Your domain name*/
Step 6: Click Save.

Now check your website.

Another Way to update path:

Step 1: Connect your FTP
Step 2: Goto this path wp-content/themes/Your-theme/
Step 3: Download functions.php
Step 4: Add these lines top of the file.
update_option('siteurl','http://www.example.com/');/*Your domain name*/
update_option('home','http://www.example.com/');/*Your domain name*/
Step 5: Save and Upload.

Now check your website.

No comments:

Post a Comment