There might be situations where you have long ugly file names on your website and you have links to them. You would not want to have a link to something like 7bd137a5-8a61-2a21-eb82-3352af7ec87d.html in your web application. There is an easy way to map such ugly Urls to more readable Urls. You need to enable Url mapping in web.config and then add elements to urlMappings tag. The code below is self descriptive enough.
<urlMappings enabled="true">
<add url="~/page.html" mappedUrl="~/7bd137a5-8a61-2a21-eb82-3352af7ec87d.html"/>
</urlMappings>
No comments:
Post a Comment