wordpress redirects for local developement


IF you pull a WordPress APP from an online copy by zipping the content and dumping the database to load for a local copy using XAMPP for instance.

Change the Site URL in Options Table.

UPDATE `wp_options` SET `option_value` = 'YOUR_SITE_URL' WHERE `option_name` = 'siteurl' OR `option_name` = 'home';

Also change the static URLs in your post content.

UPDATE `wp_posts` SET `post_content` = REPLACE(post_content, '', 'YOUR_SITE_URL/');

Don't forget to change the table prefix if its not 'wp_'.

Edit : Access PHPMyAdmin of your server. Contact your Hosting Provider if you are not aware of this.

Select your WordPress Database & Access wp_options table. And change 'siteurl' && 'home' attribute values to your Live Website URL.reference: https://wordpress.stackexchange.com/questions/263008/wordpress-incorrectly-redirects-to-local-ip-address

2017-12-19 17:19:54gstlouis


2017-12-19 18:37:43