I just imported my WordPress database from a localhost installation on my computer to the online server. However, all the links still point to localhost instead of the server’s url.
Is there something extra I forgot to do?
(Note: I did not hard write my links so for example the navigation which still points to localhost is generated with this code:
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
An other example is when I type the in url and type “wp-admin/” after it to access the dashboard, it redirects me to the localhost dashboard page….really weird
You need to go to the
wp_optionstable of your database (assumingwp_is your WordPress table prefix) and change the values of the fields with these option names, to reflect the location of your online server: