Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterRedirect when bad URL is givenRedirect when bad URL is given
Previous
 
Next
New Post
3/19/2010 12:30 AM
 

I've been playing around with the setting for "Action for Pages which have been deleted, disabled or have expired" and can't seem to get either version to execute.

It seems like if the URL is in a DNN style format but an invalid tabid, UM will always find the page that matches most of the URL.  Even if it's just /Default.aspx?tabid=234234234, it finds the home page at / and loads it right up with the bogus URL still there.

Also, if my URL is /Home/Auto/Cars/tabid/755/Default.aspx, it will redirect to /Home/Auto because that's a real page and ignore the tabid.

 
New Post
3/19/2010 9:09 AM
 

To help you to understand - this setting only reacts to pages that are still in the tabs table, but no longer show up in the site - or, to put it another way, if they page is in the recycle bin on the site, it will redirect or emit a 404 error.

This is not the same as an all-purpose 404 error handling application, which the module cannot do - it passes Urls onto asp.net, which then decides if the url is a 404 or not.

The reason /default.aspx?tabid=234234234 responds is that it is a valid url as far as asp.net/iis is concerned, just not as far as DNN is concerned.    This type of Url is not actually rewritten, so the Url Master module ignores it (it doesn't try and verify existence or not of tabs when requested directly, it just rewrites the url so that dnn recognises the /default.aspx?tabid=xx pattern).

You can get a redirect on the home/auto/cars/tabid/755 url if you enter it as a custom url for the page you'd like to redirect to.  To do this, go to the admin-page urls page, select the page you'd like to redirect to, and enter a url of /home/auto/cars/tabid/755/default  - then select the 301 redirect status, and apply changes.  This will intercept that Url and forward you to the correct page.  IT has to be like this for precedence reasons.

 
New Post
3/19/2010 5:22 PM
 

Ok, thanks

 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterRedirect when bad URL is givenRedirect when bad URL is given


Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

Please note : If you are posting a new thread for the Url Master module, please include the following information where applicable:

- Url Master version

- DotNetNuke version

- Example Url where possible

- If there is an error, please post the full error text and/or stack trace (from the DotNetNuke event log).