• So this is a bit of a weird one, to me anyway…

    Background: I’m running a MAMP server on my macbook to develop and stage a small web site, and I’m incorporating a WordPress blog. What’s kind of bizarre is that I can’t resolve the wordpress root when my url points to “https://localhost:8888/wordpress”, for example. It does, however, work just fine if I point to “https://127.0.0.1:8888/wordpress”.

    Furthermore, when I navigate to the URL from a page link, the address bar magically changes from “https://localhost:8888/wordpress” to “https://localhost/wordpress”.

    – Every other page on this site works fine with “localhost” in the url, except this one.
    – Three pages on the site query a MySQL database, just like WordPress does on the backend, so I’m confident MySQL itself is fine.
    – The wordpress login screen also works with “localhost”, as does the rest of the dashboard.

    So I can only conclude that something being called by index.php is exploding on me.

    Any help on this would be much appreciated. Sorry if I’m rambling, I’ve had a fair bit of coffee this morning…

    Thanks in advance.

  • The topic ‘Cannot resolve wordpress root using hostname’ is closed to new replies.