• Resolved avitar312

    (@avitar312)


    System Config – Win 10; Xampp ver7.2.5; WordPress 4.9.5; not-multisite

    Sorry for the long post but my hope is that it will reduce your time by eliminating some obvious questions that would have to be asked.

    About a year ago I was experimenting with WordPress using a local install. I made some decent progress – everything installed, website built, access both from the intranet and on the local system etc. Due to issues (computer and real life), I suspended the project.

    I recently purchased a new computer and decided to continue my efforts. I installed XAMPP and WordPress without any problems. In a few minutes I was up and running with a sample site. I can access this site with localhost/website & 127.0.0.1/website with no problems. The same goes for …/wp-admin and access from the wordpress dashboard. With everything working I decided to migrate my original website to the new machine.

    I exported the database from PhpMyAdmin and imported it on the new machine. The databases seem identical between machines. I copied my contents folder to a new folder under the htdocs folder. I changed the config file and made sure that siteurl and home in the options table of the database were correct (https://localhost/websitefolder). Then I tested it.

    I can access the site via 127.0.0.1/websitefolder. I can access …/wp-admin. But if I want to access the site from the wordpress dashboard or localhost/websitefolder the browser tries to connect to the old computer’s IP address.

    I have searched the database from the root level for instances of the IP address using PhpMyAdmin. Nothing. I have searched all content folder files for the same string. Nothing. I have refreshed permalinks. No change. Does anyone know what I am missing?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Which browser are you using ? InternetExplorer / Firefox / Chrome ? Whichever it is try a different one.

    Have you cleared the browser cache ? (Some browsers hold their cache longer than you would believe, like some that take a 301 redirect (which admittedly is a permanent redirect) as absolutely permanent, and cache the result forever.)

    What is in your “hosts” file ? Details here:
    https://en.wikipedia.org/wiki/Hosts_(file)

    Thread Starter avitar312

    (@avitar312)

    As I read your post I said to myself, “No, not possible. I know I cleared my browser (Firefox) cache.” But, if you ask for advice it’s only reasonable that you follow it. So I fired up an alternate browser and bingo! The site worked just fine. Thirty seconds later I had cleared my FireFox cache and it was working there as well.

    Thank you very much for the prompt response and expert guidance!

    I suspect that once I had imported the database and files I must have tried to connect locally before changing settings. (I don’t remember doing that but I must have.) After that it was as you said, the browser cached the old address.

    Thanks again Ross. You’ve certainly earned some good karma today!

    Thread Starter avitar312

    (@avitar312)

    Solved/Closed

    Thanks again for the support Ross!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot Connect via Localhost; 127.0.0.1 works fine’ is closed to new replies.