Support » Fixing WordPress » Migrated site, some links correct, some incorrect

  • Hey Guys,
    Thanks for stopping and taking the time to view the post.

    The issue at hand is with this website.

    You will notice when clicking around the navigation links that some keep you at the correct url ( and other page links take you to (the dev site where). I have set all the database options to the correct url.

    I want to reset the permalinks but when logging into wp-admin it again takes me to dev site. Any ideas would be great as the deadline is upon us!

    Thanks so much,
    – Josh

Viewing 1 replies (of 1 total)
  • Hi Josh,

    The first thing you should do is to open the functions.php file of your theme and add these lines to it:


    Then, open the website front page. You need to do that because functions.php has to be executed at least once 🙂

    Now, you should be able to access your backend. Once you do that, go to Settings -> General and hit the Save changes button just in case. Finally, go to Settings -> Permalinks and once again simply save the settings in order to regenerate them. Once you do that, your site should be working just fine from the new location.

    Note that if you have any hardcoded links in your theme, you need to edit those manually 😉

Viewing 1 replies (of 1 total)
  • The topic ‘Migrated site, some links correct, some incorrect’ is closed to new replies.