How to redirect www.xxxx.com to www.yyyy.com 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 www.baltija.net pointing to www.chuckscherl.com
2) when www.baltija.net was entered the script on the home page change the was changed from www.chuckscherl.com to www.baltija.net/baltija.html.  The www.baltija.net 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 baltija.net to be effectively mapped to chuckscherl.com/photos/baltija/index 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.

Thanks
ChuckS

blindrookieAsked:
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.

YiogiCommented:
put it in a frame or an iframe and then do all your navigation in that frame.
0
blindrookieAuthor Commented:
do you have an example?
0
YiogiCommented:
put
<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.
0

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:
Hi,

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.
0
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.