Monday, May 7, 2012

URL Mappings

Earlier this week, I released a suite of network troubleshooting utilities called Pinkie through a website named <a href="http://www.ipuptime.net">ipUptime.net</a>.

Everything went well. The public seems to welcome it and as I monitor the statistics for the site as well as the download counts from other download sites, I realized that something is wrong with my site statistics.

If people download the file through the link on my site then the download count is incremented. But if they had download it from other sites, using the URL I had submitted then the download is not accounted for.

Changing the published URL for all other sites will be time consuming so I was looking for a better solution to the issue. Then I remember ASP.net 2.0 supports URL Mappings. So by using URL Mappings, within a minute or two, my problem is solved.

Here's the syntax for URL Mappings:


<add url ="~/newurl.aspx" mappedUrl="~/oldURL.aspx"/>
</urlMappings>

Best use for URL Mappings are for shortening long, hard to remember URL to something short & easy to remember or in my case, correct a mistake and save time.

No comments: