• Resolved Eric Hepperle

    (@codeslayer2010)


    Hi @cory

    I restored a site from a Duplicator backup on a folder on my localhost and everything went great. Actually, the backend showed perfect, but the front end wasn’t found until I disabled OpenSSH plugin. Neither here nor there.

    After the successful restore I created a subfolder and drug everything into it. Now the homepage shows the “Page Not Found” from the WordPress theme I installed, but I can’t even load wp-admin.

    So, my question is What are the steps to successfully move a localhost website into a subfolder or subdirectory? How can I fix this? Is it simply a setting somewhere?

    Thanks!

    • This topic was modified 2 years, 11 months ago by Eric Hepperle. Reason: Clarify title
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @codeslayer2010,

    Where is the subfolder location that you created? Is it a subfolder within the WordPress site you just installed? Is it directly off the root of the WP site or nested further down in one of the WordPress core folders?

    Thx~

    Thread Starter Eric Hepperle

    (@codeslayer2010)

    @corylamleorg I apologize for the late response.

    So, part of the issue is resolved. In phpMyAdmin I edited the siteurl and home fields in my _options table and made those two URLs match the URL of my home page.

    I am able to get to the home page now, but none of my links (blog posts, pages, categories, tags, etc.) are working. They all have the new link structure, but they are all showing 404. I don’t know enough about Apache — could this be some kind of URL rewrite issue? .httacess?

    PS: To answer your original question, here is my original URL path structure compared with my new one. Hope this helps clarify:

    Original URL home page path:
    https://localhost/in-progress/ehw/dup-2pt-20211012/
    
    NEW URL home page path:
    https://localhost/sub/wp/pers/ehw/dup-2pt-20211012/

    Thanks for your help Cory!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Move restored site to different folder (subdir) on same server (localhost)’ is closed to new replies.