faqts : Computers : Internet : Web Servers : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 34 people (59%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

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.