Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

HTTP redirect without changing url in address bar?

$
0
0

In my IIS 7, I have a virtual directory called MySite.com. Under this virtual directory, I have a subfolder called "News". This subfolder is configured so that when someone goes to "http://www.MySite.com/News", they will automatically be redirected to "http://www.MySite.com/MyVeryLongUrl.aspx". That works fine.

My question is: Is it possible for the browser to display the contents of the new redirected url, but still show the old url in the addressbar? In my case, once redirected, the user will see the contents of "http://www.mysite.com/Sell/MyVeryLongUrl.aspx" but the address bar will say "http://www.MySite.com/News".

Is something like this possible? It would all need to be done via IIS or web.config. I don't have access to the code.

I'm including the web.config in the subfolder "News".

Thanks.

<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><httpRedirect enabled="true" destination="http://www.mysite.com/Sell/MyVeryLongUrl.aspx" /></system.webServer></configuration>




Viewing all articles
Browse latest Browse all 7363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>