Why is my page being redirected to localhost on my Wordpress blog?

This is my website URL http://www.weblogicsol.com/ . Here I installed the Wordpress theme with the URL http://www.weblogicsol.com/blog , the problem is that when I want to open wp-admin (which means when I write http://www.weblogicsol.com/blog/wp -admin ) it redirects to local . Please help me solve this problem, I am in trouble.

And if I write this code in the wp-config file

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

then this URL appears with an error message.

http://weblogicsol.com/blog/wp-login.php?redirect_to=http%3A%2F%2Fwww.weblogicsol.com%2Fblog%2F%2Fwp-admin%2F&reauth=1

+12
source share
4 answers

Check 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 them to your live url and you should be set

Here is a very extensive documentation on wordpress porting http://codex.wordpress.org/Moving_WordPress

+25
source

Check Control Panel -> Settings -> WordPress Address (URL), Site Address (URL) There should not be "localhost"

+2
source

There are two areas in WP_OPTIONS that need to be changed. One of them is the fisrt page, and the second is on the second page.

This video will certainly help if you have access to phpMyAdmin

http://educhalk.org/blog/?p=21

0
source

You need to check wp_options in your database, change the site URL home as your web domain

0
source

Source: https://habr.com/ru/post/911061/


All Articles