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

This is my site URL http://www.weblogicsol.com/ , Here I installed a wordpress theme having URL http://www.weblogicsol.com/blog , the problem is this when I want to open the wp-admin (means when I write http://www.weblogicsol.com/blog/wp-admin) it redirect to localhost. Please help me to solve this problem, I am in trouble.

And if I write this code in wp-config file

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

then this URL appears with an error message.



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


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

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

There are two areas in the WP_OPTIONS that you need to change. One is one the fisrt page and the other one is on the 2nd page.

This video will definitely help if you have access to phpMyAdmin


Need Your Help

Are there any reasons why h2 database shouldn't be used in production?

database jboss h2

I am recently considering making an application that uses h2 database as its main database (because it comes with JBoss), but I am bit worried about that. I have read in a few places (discussion bo...

Android: Changing visibility on menu items with changing fragment

android menu actionbarsherlock fragment menuitem

I want to change the visibility of menu items of a fragment activity (abs) when ever I change the fragment in the activity. The fragments are SherlockListFragments.