How do I do a redirect without Apache changing the URL the end user sees in the browser?
Mar 26th, 2002 11:46
Joshua Slive, Bruce Klein,
If the target URL is on the same server, you can use Alias or RewriteRule
to have apache serve the content directly. ie.
Alias /dir/file.html /full/path/to/other/file.html
If the target URL is on another server, then you really shouldn't do this.
It can be done using invisible frames or by configuring Apache to
proxy the content (grab it back from the other server and deliver it
to the client) but it is complicated to configure.
It is a basic security issue that browsers do not allow you to redirect
someone without telling them where they are going.