Title: Cannot resolve wordpress root using hostname
Last modified: August 20, 2016

---

# Cannot resolve wordpress root using hostname

 *  [teddy_refspin](https://wordpress.org/support/users/teddy_refspin/)
 * (@teddy_refspin)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/cannot-resolve-wordpress-root-using-hostname/)
 * 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 “[http://localhost:8888/wordpress&#8221](http://localhost:8888/wordpress&#8221);,
   for example. It **does**, however, work just fine if I point to “[http://127.0.0.1:8888/wordpress&#8221](http://127.0.0.1:8888/wordpress&#8221);.
 * Furthermore, when I navigate to the URL from a page link, the address bar magically
   changes from “[http://localhost:8888/wordpress&#8221](http://localhost:8888/wordpress&#8221);
   to “[http://localhost/wordpress&#8221](http://localhost/wordpress&#8221);.
 * – 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.

## Tags

 * [document root](https://wordpress.org/support/topic-tag/document-root/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 0 replies
 * 1 participant
 * Last reply from: [teddy_refspin](https://wordpress.org/support/users/teddy_refspin/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/cannot-resolve-wordpress-root-using-hostname/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
