cannot login to wordpress when site moved

When I try to login to wordpress that moved server, wordpress redirect to previous site url and cannnot login current site.

The reason is that wordpress refers a url in database when login to it.

So you must rewrite database value to current site url.

 

That database value are fllowing,

table: wp_options

columun: option_name=’siteurl’

 

following code are rewrite url.

update wp_options set option_value='{site new url}' where option_name='siteurl';

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.