• We’re migrating a wordpress site and we’d like to set it up locally before moving it to another remote server.

    I did the normal steps following this guide Guide Link

    When I browse to the site via localhost the homepage is working, however, none of the other pages work. They say they are missing when I click on their links in the navbar. The urls appear as localhost/test-site/page-1

    Also, I don’t know if it’s related, but some of the images are also broken. They are looking for the images via the path localhost/image rather than the localhost/test-site/image as they should be.

    I’m new to more advanced wordpress issues like this so any extra explanation is appreciated.

    [Edit – More Info]
    I logged into the wp-admin without any issue and the pages are there, the content is there. The permalinks are proper according to my localhost changes as well localhost/test-site/page-1 however, when I press preview I still get a 404.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello digitaldynastydesign, & welcome to the WordPress support forum.

    What folder is your site actually installed in? Can you please show us your .htaccess file?

    @digitaldynastydesign

    When moving a WP site where the URLs will be different (as in your case, as it’s now on a local server) you will have to update the rest of the URLs/links. As you were able to login to the Dashboard, you obviously had changed the siteurl and home fields in the wp_options table in the database.

    Now for the rest of them, including the image links. This is one of the easier ways to do so and the one I use all the time. Install and run this plugin:

    https://www.ads-software.com/plugins/better-search-replace/

    – this plugin also updates any URLs/links stored as serialized strings

    Once that is done, go back to Settings > Permalinks and just click Save Changes; this will rebuild the local .htaccess file

    Cheers!
    Lyle

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Navbar Links Stopped Working’ is closed to new replies.