First thing I would do is make sure and go to the Permalinks page and save the permalinks again (I always do this just to make sure).
I would then recommend installing and running this plugin:
https://wordpress.org/plugins/search-and-replace/
Because it sounds like you are using a different URL, and there may be instances of the old URL AND the old PATH in the database.