Closed tanakahisateru closed 12 years ago
Sometimes Apache's ServerName is not same as content of browser address bar if UseCanonicalName is set. To retain host name looked from user when redirect HTTP_HOST should be used to choose target URL.
Also fixed host name option needed for a case when behind of reverse proxy.
You can set $_SERVER's property directly.
Sometimes Apache's ServerName is not same as content of browser address bar if UseCanonicalName is set. To retain host name looked from user when redirect HTTP_HOST should be used to choose target URL.