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.