Title: WordPress and reverse proxy
Last modified: August 21, 2016

---

# WordPress and reverse proxy

 *  [jo1](https://wordpress.org/support/users/jo1/)
 * (@jo1)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-and-reverse-proxy/)
 * Hi there,
 * By default wordpress generates hard href with the url provided in setting/genral.
 * This is a problem because you can’t use wordpress with a reverse proxy.
 * Is there a way to force wordpress to generate href such as href=/url
    instead
   of href=http://web/url
 * Thanks in advance

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

 *  [Keith](https://wordpress.org/support/users/keithdriscoll/)
 * (@keithdriscoll)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-and-reverse-proxy/#post-4449227)
 * try this [http://wordpress.org/support/topic/wordpress-behind-reverse-proxy-1](http://wordpress.org/support/topic/wordpress-behind-reverse-proxy-1)
 * Hope that helps 🙂
 *  Thread Starter [jo1](https://wordpress.org/support/users/jo1/)
 * (@jo1)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-and-reverse-proxy/#post-4449242)
 * Thank you Keith for your help.
 * It’s a good start but it doesn’t work for me. I tried to unset $_SERVER[‘HTTP_HOST’](
   because that’s what I need : to get href generated without server name)
 * I tried with this at the latest line of wp-config.php :
    $_SERVER[‘HTTP_HOST’]
   = “”; => doesn’t work $_SERVER[‘HTTP_HOST’] = $_SERVER[”]; => doesn’t work
 * I greped $_SERVER[‘HTTP_HOST’] to see where this varraible could be initialized.
   It is used and defined several times also by plugins.
 * Is there a way to unset this variable on time for all ?
 * Thanks in advance

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

The topic ‘WordPress and reverse proxy’ is closed to new replies.

## Tags

 * [reverse proxy](https://wordpress.org/support/topic-tag/reverse-proxy/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [jo1](https://wordpress.org/support/users/jo1/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-and-reverse-proxy/#post-4449242)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
