Links redirecting to localhost after migration to server

if anyone comes across with this issue, I resolved it by editing both the ‘home’ and ‘siteURL’ fields in the wp-options table of the database on the server (not the localhost one) to replace the ‘localhost/wordpress’ with ‘http://www.youehostedsitename‘. replace Both ‘home’ and ‘siteurl’.

Leave a Comment