Last post Mar 04, 2009 08:20 AM by syamchk
Feb 10, 2009 08:39 AM|syamchk|LINK
Hi Experts, i am trying to rewrite the url.
If the user enters http://mysite.com in the URL, it is default redirected to mypage1.aspx having few buttons.
In button1_Click, i have written Response.Redirect("mypage2.aspx?catID=20"); //URL in the browser appears as
In button2_Click,i have written Response.Redirect("mypage2.aspx?catID=25"); //URL in the browser appears as
In button4_Click,i have written Response.Redirect("mypage2.aspx?catID=44"); //URL in the browser appears as
But for the user, the URL should appear as
http://mysite.com/downloads in button1_Click
http://mysite.com/help in button2_Click
http://mysite.com/contacts in button3_Click
I want to rewrite the url that has to appear for the user in the browser. Any help is really appreciable.
Feb 10, 2009 08:48 AM|rtpHarry|LINK
To do extensionless urls (no .aspx) then you need to setup something called wildcard mapping on IIS. Try a google search.
Depending on what platform you are developing for you have a few options:
Feb 12, 2009 06:31 AM|syamchk|LINK
I am intercepting all URLs using an IHttpModule to filter paths.
On my development system (Windows Vista with IIS7.0), incomplete URLs are passed to the IHttpModule.
Incomplete paths, i.e. http://www.host.com/directory/ are not passed to the IHttpModule in IIS 6.0 running on Windows 2003 Server.
What must I do to cause these URLs to be passed to the IHttpModule?
Thanks in advance for your help.
Feb 15, 2009 02:52 PM|Xcraft|LINK
i got the same problem, working on my local vista iis7 but not my server iis6 w2003.
Did you manage to resolve this issue? does any one know the answer?
thanks a lot,
Feb 20, 2009 06:45 AM|syamchk|LINK
Feb 20, 2009 07:30 AM|Xcraft|LINK
I already tryed that, but then my images and style sheet stopped loading
Mar 04, 2009 08:20 AM|syamchk|LINK