Click here to Skip to main content
15,891,930 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to do url mapping to show a url in a user friendly way.
This is how the actual url looks : www.abc.com/folder1/folder2/webpage.aspx

I would like to display the url more like this: www.abc.com/webpage.aspx

How do I achieve this? Url mapping doesn't seem to work as it thorws a Http 404 file not found error when I do the url mapping.

Here is how I mapped:

HTML
<urlMappings enabled="true">
      <add url="~/webpage.aspx"
         mappedUrl="http://www.abc.com/folder1/folder2/webpage.aspx" />
    </urlMappings>

Please help.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900