Skip to content
mistermarco edited this page Sep 13, 2010 · 2 revisions

Some users at Stanford University had issues with the way WordPress created links if the sites were accessed from behind a reverse proxy. We use a reverse proxy to implement vanity URLs such as “vanity.stanford.edu”.
The main issue was that even if a user visited the blog site at “vanity.stanford.edu” the internal links created by WordPress would still point to the destination. For example, if the reverse proxy handled the vanity URL vanity.stanford.edu which really pointed to www.stanford.edu/group/vanity/cgi-bin/wordpress, WordPress would rewrite internal links as vanity.stanford.edu/group/vanity/cgi-bin/wordpress which resulted in broken links.. This plugin disables the canonical plugin first, and then rewrites the REQUEST_URI server variable to provide WordPress something it can rely on.

Clone this wiki locally