Title: Reverse Proxy, permalinks and &#039;Redirection&#039; plugin
Last modified: August 20, 2016

---

# Reverse Proxy, permalinks and 'Redirection' plugin

 *  [Kris Robson](https://wordpress.org/support/users/kris-robson/)
 * (@kris-robson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/reverse-proxy-permalinks-and-redirection-plugin/)
 * Hi All
 * Our current server configuration is we have one server managing the reverse proxy,
   which forwards the request to another server with the hosted wordpress.
    [http://www.foo.com/](http://www.foo.com/)-
   > [http://bar.private.lan/wordpress/](http://bar.private.lan/wordpress/)
 * I’ve slowly been working out all of the bugs so far. In the wp-config, i have
   rewritten a few things:
 * Manually defining WP_SITEURL and WP_HOME to: [http://www.foo.com/](http://www.foo.com/)
   
   To prevent odd dynamic behaviour.
 * And rewriting the URI
    $_SERVER[‘REQUEST_URI’] = str_replace(“wordpress/”, “”,
   $_SERVER[‘REQUEST_URI’] To prevent more odd dynamic behaviour in the admin pages.
 * However, I am now attempting to setup permalinks, and I’m not getting very far.
   Only the default option works, and all options will display the post on the landing
   page. However clicking the link will cause a an error 404. The log file (on bar.
   private.lan) reads:
    [client 192.168.1.1] File does not exist: /dir/webroot/wordpress/
   2011, referer: [http://www.foo.com/](http://www.foo.com/)
 * Symbolic linking doesn’t appear to be the issue, i’ve had nothing but problems
   using a virtual host setup on the host machine, and although [this topic suggested a plugin](http://wordpress.org/support/topic/reverse-proxy-and-permalinks?replies=7),
   I’ve also had nothing but pain getting that to work.
 * Is there something I am missing? Or perhaps someone could provide a more thorough
   guide to using the ‘Redirection’ plugin?
 * Much appreciated
 * Kris Robson

Viewing 1 replies (of 1 total)

 *  Thread Starter [Kris Robson](https://wordpress.org/support/users/kris-robson/)
 * (@kris-robson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/reverse-proxy-permalinks-and-redirection-plugin/#post-2427809)
 * Also, when navigating the ‘Install Themes’ selections, choosing to progress a
   page will result in the url:
    [http://bar.private.lan/wp-admin/blah](http://bar.private.lan/wp-admin/blah)
   the /wordpress is removed due to the uri edit, but it shouldn’t be directing 
   to bar.private.lan as far as i can tell.

Viewing 1 replies (of 1 total)

The topic ‘Reverse Proxy, permalinks and 'Redirection' plugin’ is closed to new 
replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Kris Robson](https://wordpress.org/support/users/kris-robson/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/reverse-proxy-permalinks-and-redirection-plugin/#post-2427809)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
