• Resolved rcookney

    (@rcookney)


    Hi All,

    I am attempting to edit my website locally via WAMP. I have installed a duplicate copy of my live site to WAMP and my project is called ‘test’

    I can access the homepage of my site via localhost/test. However, every other page says ‘this webpage is not available’.

    When I go to localhost/test/wp-login.php after I’ve entered my password and submitted the page I get taken to is localhost/test/localhost/test/wp-admin which just shows the WAMPSERVER homepage. I can delete the first ‘localhost/test’ and get to the wp dashboard but it does a similar thing when I try to edit pages.

    eg. I’ll click to edit homepage and get taken to

    https://localhost/test/wp-admin/localhost/test/wp-admin/post.php?post=2959&action=edit

    When I delete the first ‘https://localhost/test/wp-admin’ it takes me to the editing page for that page.

    I’m a relative newbie at this but feel like there must be a link between the additional ‘localhost/test’ being added in the admin area and not being able to view any pages other than the homepage when I am not in the admin area.

    Could anyone advise where I could have gone wrong?

    I am running the following versions (if it helps)

    Apache – 2.4.9
    MySQL – 5.6.17
    PHP – 5.5.12
    Wamp icon colour is green

Viewing 3 replies - 1 through 3 (of 3 total)
  • snifflevalve

    (@snifflevalve)

    When you change the URL of your site, which you did when you copied it from live to local, you have to update all the URLs and links at the new location.

    1. from the WAMP control panel, go to phpMyAdmin and change the home and site url in the wp-options table to your local path. If you named your local site’s folder test, then what you would enter is: https://localhost/test and this is the URL you will use to access the local site. Your login is then https://localhost/test/wp-admin

    2. once logged into the Dashboard, install and run this plugin to update all the links:

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

    3. when that is done, go to Settings > Permalinks and just click Save (this rebuilds the .htaccess file on the local site)

    Cheers!
    Lyle

    Thread Starter rcookney

    (@rcookney)

    Worked! Thank you so much!!

    Thread Starter rcookney

    (@rcookney)

    Resolved

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘'Webpage not available' for all pages except homepage’ is closed to new replies.