Bookmark and Share

Wednesday, August 24, 2011

How to configure short url having a DNN page with the same name

Here is a DNN problem: you have created a page inside DNN with the name Download.

The page appears in the menu, and you can’t change it’s name and people reaches it using the url:

www.yoursite.com/download/tabid/198/Default.aspx

After some days your boss asks you: “it should be beautiful to reach the page using the url: www.yoursite.com/download

One solution is to create a virtual dir on IIS named “Download”, and to configure on this page a redirect to the DNN page, like this:

image

Note that you can’t use “the exact url entered above” because it creates an unconditional redirect to the url entered, and if you try to edit the page all the redirects to the DNN editing mode will be transformed in the “the exact url entered above” page with no editing capabilities.

That’s all… it works!