How to redirect to in same website while preserving yyyy in browser address bar

A while back someone gave me a ASP script which was inserted into my home page which allowed me to rewrite the address and all browsing on my site using the new domain name etc.  as follows.

1) I had pointing to
2) when was entered the script on the home page change the was changed from to  The was carried throughout the session.

I since lost that code and would like to reimplement it. ISA Rewrite would be a better choice, but my hosting company does not support it.

ideally I would like to be effectively mapped to and make it look to the outside world that they are accessing a separate website.
 I would truly like to have a piece of sample code that will do the trick.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

put it in a frame or an iframe and then do all your navigation in that frame.
blindrookieAuthor Commented:
do you have an example?
<iframe src="/yourpagehere.aspx" width="165" height="21" id="SymbolSearch" allowtransparency="true" frameborder="0" scrolling="No" border="0" class="iframe"></iframe>
in a web page
and response.redirect or server.transfer you do from within yourpagehere.aspx will open the new page in the iframe. The link on the browser url will not change but it will remain on the original page.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sam PanwarSr. Server AdministratorCommented:

You can do it through the three ways.

1.IIS or from the webserver but it is not better work.
2. ASP Script
3. From the domain control panel. Please contact to the service provider for the domain forwarding from which you have register the domain .

The every domain control panel have option of the domain forwarding in which you can map or hide the URL and many more so it is better solution for redirection.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.