Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Redirect ModuleRedirect Module
Previous
 
Next
New Post
7/7/2006 1:58 PM
 

If it were a valuable project, I would, and I'd also set up traffic reports running off the IIS log file. 

For the average project I'd only redirect the high-priority and/or top-traffic URLs.



Shane Miller
Call Centers 24x7
 
New Post
7/7/2006 2:04 PM
 
That's why I was thinking that a 404 Module Redirector would be so useful. It could log the number of hits on each 404 error page and you would then sort by "most lost" page and add in your redirection in the lookup table.

So say you convert a site with thousands of pages to a DNN site. You are still working on getting all the redirection in and you can prioritize the ones that are getting the most hits (i.e. at the top of the Module Redirector page) and that would help as a transition.

It would also help you if you ever, for example, remove a page from your site. You can see if that page gets many hits and put a redirector to a new page or a reason why that page was removed etc.

ver 4.3.1 (to 8 July 2006) ver 4.3.2 (to 20 July 2006) ver 4.3.3 (to 5 Aug 2006) ver 4.3.4 (to 20 Sep 2006) ver 4.3.5 (to 25 Dec 2006) ver 4.4.0 (to date)
 
New Post
7/7/2006 2:10 PM
 

Yeah, I doubt there's a module out there that scans the IIS logs.  Not that it couldn't be made, I've just never heard of such a thing.  The thing is that 404 errors are generated by IIS before DNN is even involved, so there's no record in the DNN logs.

Now, you could do something like configure IIS to invoke default.aspx when a 404 is returned, and then handle the redirects with something in DNN.  I've never explored that option, but I'm sure it could be made to work.  I've never had to do more than a few dozen redirects, which are so quick and easy to do it's never been worthwhile for me to explore those advanced possibilities.



Shane Miller
Call Centers 24x7
 
New Post
7/7/2006 2:23 PM
 
FlatBurgerLabs suggests using the 404 redirect from the web.config file here:
http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/108/threadid/49488/scope/posts/Default.aspx

which I have not yet had a chance to try.

However, assuming that works, then your 404 redirect in the web.config file would be to the default.aspx URL of the 404 redirector module which would hopefully be able to determine what page is being sought and then do a lookup in the table. If an appropriate page is not found then it could redirect to a general 404 page.

This would also have the advantage of you being able to enter partial page masks. Say for example, you have requests for a url that no longer exists and part of that url was /adventures/find.asp?topic=2314

Then you might want to redirect all of those "types" of pages to a different URL and so could have partial matches which are checked and then finally a catch-all.

ver 4.3.1 (to 8 July 2006) ver 4.3.2 (to 20 July 2006) ver 4.3.3 (to 5 Aug 2006) ver 4.3.4 (to 20 Sep 2006) ver 4.3.5 (to 25 Dec 2006) ver 4.4.0 (to date)
 
New Post
7/7/2006 4:09 PM
 

The reason that won't work --- at least not without tweaking IIS in the manner I described in the earlier post --- is that true 404 errors are generated by IIS before it "knows" to invoke the web application.  So, for example, if you go to www.yourwebsite.com/example.yyy settings in web.config don't matter because IIS doesn't know .yyy files are ASP.net applications.  If you first do the change I mentioned, tweaking IIS so that 404's bring up an asp.net file then there are all sorts of things you can do, ranging from what Flatburger suggests, to working with SiteUrls.config.  The trick is taking that step so that IIS knows what to do with true 404 errors.

In case I'm not making the point clear, here's another example.  Say you have a new portal and it has a tab at this URL:  http://www.mysite.com/default.aspx?tabid=53  Say that the old site had an equivalent page at http://www.mysite.com/something.htm  Your objective is to have incoming requests for something.htm map to that new URL.  .htm files are not files which invoke asp.net and therefore nothing you do in web.config, or DotNetNuke, will do the redirect.  So either you must make IIS do the redirect (if you don't have many to do the virtual directories I suggested are very easy), or you have to configure IIS so that it invokes asp.net from a true 404 error.  That's the tweak I was telling you about.  As long as you do that, then you can do all sorts of things with DNN, web.config, etc to redirect.

To reiterate in one more way, having an unknown tabid is not the same thing as a 404 from the perspective of the web server.  To DNN --- to the web *application* --- it may be an unknown page.  But that's a different issue than handling a true 404.



Shane Miller
Call Centers 24x7
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Redirect ModuleRedirect Module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out