Title: $_SERVER[&#8220;HTTP_REFERER&#8221;]
Last modified: August 18, 2016

---

# $_SERVER[“HTTP_REFERER”]

 *  [armstrong1118](https://wordpress.org/support/users/armstrong1118/)
 * (@armstrong1118)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/_serverhttp_referer/)
 * I am setting up a site where I would like the sidebar to be relevant to the page
   on my site that the user just came from.
 * I found $_SERVER[“HTTP_REFERER”] but it doesnt seem to be working when I try 
   and put it into my sidebar.php
 * Does anyone know if wp supports this or if it doesnt anything that will do just
   about the same thing?

The topic ‘$_SERVER[“HTTP_REFERER”]’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [armstrong1118](https://wordpress.org/support/users/armstrong1118/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/_serverhttp_referer/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
