Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

redirect url but want to mask address

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Unable to download files from https with Internet..  
Author Message
clifford

External


Since: Oct 16, 2003
Posts: 6



(Msg. 1) Posted: Mon Oct 18, 2004 5:15 am
Post subject: redirect url but want to mask address
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi,

I've set up redirection as follows :

www.site1.com redirects to www.site2.com which is on a
different server. This works fine, but in doing so the
address in the address bar reflects the new location.

How can I set up such redirection but retain the original
url in the address bar?

 >> Stay informed about: redirect url but want to mask address 
Back to top
Login to vote
user2302

External


Since: Oct 18, 2004
Posts: 1



(Msg. 2) Posted: Mon Oct 18, 2004 9:51 am
Post subject: RE: redirect url but want to mask address [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Clifford,

By using a redirect (I assume you mean the redirect function in IIS) -
that's what happens - as it issues a 301.

Why is there a need to redirect to the other server whilst maintaining the
original address? Is it for testing purposes? Then you may be able to get
away with hosts file - but if it's for something permanent, you may need
something like

1) an asp page which checks the current header and rewrites the address or
2) setting up the pages on <a style='text-decoration: underline;' href="http://www.site1" target="_blank">www.site1</a> to make references to resources(images,
media files etc) via direct http calls eg: <a style='text-decoration: underline;' href="http://www.site2.com/images/" target="_blank">http://www.site2.com/images/</a> in
the app itself. This assumes the second server is being used to reduce the
load...


Ronald


"Clifford" wrote:

 > Hi,
 >
 > I've set up redirection as follows :
 >
 > <a style='text-decoration: underline;' href="http://www.site1.com" target="_blank">www.site1.com</a> redirects to <a style='text-decoration: underline;' href="http://www.site2.com" target="_blank">www.site2.com</a> which is on a
 > different server. This works fine, but in doing so the
 > address in the address bar reflects the new location.
 >
 > How can I set up such redirection but retain the original
 > url in the address bar?
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: redirect url but want to mask address 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 3041



(Msg. 3) Posted: Tue Oct 19, 2004 4:47 pm
Post subject: Re: redirect url but want to mask address [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In addition to Ronald's comments, you could use a reverse proxy server.

At the moment, using redirects, the server is telling the browser "the
content you want is not here, it's located at <new address>" and the browser
then issues a new request to <new address>. That's why the "address" changes
in the browser's address bar - the browser is now attempting to connect to
<new address>.

A reverse proxy server (like ISA Server or Squid) connects to server2 on the
user's behalf, gathers up the response, and packages it and sends it back to
the browser.

Cheers
Ken

"Clifford" <clifford.DeleteThis@lando.co.za> wrote in message
news:133601c4b4f3$0d52cf80$a301280a@phx.gbl...
 > Hi,
 >
 > I've set up redirection as follows :
 >
 > <a style='text-decoration: underline;' href="http://www.site1.com" target="_blank">www.site1.com</a> redirects to <a style='text-decoration: underline;' href="http://www.site2.com" target="_blank">www.site2.com</a> which is on a
 > different server. This works fine, but in doing so the
 > address in the address bar reflects the new location.
 >
 > How can I set up such redirection but retain the original
 > url in the address bar?<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: redirect url but want to mask address 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]