Why does my page redirect to localhost in my wordpress blog?

55,175

Solution 1

Check your wp-options table and find all occurrence of 'localhost' in option_value field

http://codex.wordpress.org/Database_Description#Table:_wp_options

SELECT * from wp_options where option_value like '%localhost%';

and change those to your live URL and you should be set

Here's a very extensive documentation on migrating wordpress http://codex.wordpress.org/Moving_WordPress

Solution 2

Check the Dashboard -> Settings -> WordPress Address (URL), Site Address (URL) There should NOT be 'localhost'

Solution 3

Here is the way. 1. Login to Phpmyadmin 2. select Db 3. goto table "wp_options" 4. change url in siteurl & home.

its works 100%

Share:
55,175
Symfony
Author by

Symfony

Updated on July 09, 2022

Comments