Title: WordPress on internal network
Last modified: August 18, 2016

---

# WordPress on internal network

 *  [jonmccune](https://wordpress.org/support/users/jonmccune/)
 * (@jonmccune)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/wordpress-on-internal-network/)
 * Hello, I have wordpress installed on a webserver on an internal network, where
   a gateway machine redirects web requests. From the outside world, all is well.
   From the internal network, however, a connection to my blog is refused.
 * Gateway (and world-visible blog host): [http://www.myhost.com](http://www.myhost.com)
   
   Internal name for webserver machine: web.localdomain
 * I.e. (made-up URLS), [http://www.myhost.com/wordpress](http://www.myhost.com/wordpress)
   works fine from the Internet.
    [http://web.localdomain/static.html](http://web.localdomain/static.html)
   works fine from Intranet
 * [http://web.localdomain/wordpress](http://web.localdomain/wordpress) does not
   work from Intranet
    The URL gets redirected to [http://www.myhost.com/wordpress](http://www.myhost.com/wordpress)
   which does not resolve correctly from the gateway itself.
 * I can imagine fixing this with iptables rules on the gateway or perhaps Apache
   settings. However, why does wordpress care so much about its URL?
 * Thanks,
    -Jon

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/wordpress-on-internal-network/#post-662621)
 * _However, why does wordpress care so much about its URL?_
 * Because it is stored in its database… See your own admin panel > Options > General:
   the two URI values.
    You can access a WP blog only using those URLs.
 *  Thread Starter [jonmccune](https://wordpress.org/support/users/jonmccune/)
 * (@jonmccune)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/wordpress-on-internal-network/#post-662736)
 * Hi moshu,
 * Thanks for your reply. I suppose I was really trying to ask why it is necessary
   for wordpress to keep its URL in the database. It seems that using the hostname
   in the referrer info would work.
 * It seems that it’s a fair amount of trouble to try to make things work from multiple
   hostnames. I’ll just use iptables.
 * Thanks,
    -Jon

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress on internal network’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [jonmccune](https://wordpress.org/support/users/jonmccune/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/wordpress-on-internal-network/#post-662736)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
