Register   Login
     
  Latest Posts  
RE: Ligtbox effect does not working in DNN 5
by smcculloch on 1/09/2009 9:49 AM
RE: Embed the coolest google local search map control
by aviavia on 1/09/2009 8:06 AM
RE: Embed the coolest google local search map control
by odove on 1/09/2009 6:43 AM
RE: Ligtbox effect does not working in DNN 5
by David Eccles on 1/09/2009 6:11 AM
Changing The Home Directory.
by rtnovak on 1/09/2009 1:03 AM
RE: Updating Simple Gallery
by rtnovak on 1/09/2009 12:54 AM
RE: Select Image Button does not work.
by rtnovak on 1/09/2009 12:53 AM
Updating Simple Gallery
by rtnovak on 1/08/2009 9:59 PM
Has pay-per-ad. been added yet?
by wpmilk on 1/08/2009 7:13 PM
Has pay-per-ad. been added yet?
by wpmilk on 1/08/2009 7:13 PM
  Forums  
Subject: URL Rewriter and DotNetNuke Search
Prev Next
You are not authorized to post a reply.

Author Messages
Patrick RietveldUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:1

3/21/2007 6:17 AM  
 

Hi,

I just downloaded the source code for the URL Rewriter. I've hacked the source a bit to make it possible that when a user enters an URL like http://www.prietveld.com/thailand.aspx and the page "thailand.aspx" doesn’t exist the URL rewriter redirects the user to a search page presenting him a search result based on Thailand. This is handy when a page has moved or changed and the user hits the page via Google. (use the link above to see demo). For me it's importent that the user never sees a page not found message. The above example is one part of the solution. the other part is to make sure that a 404 page redirects to the search page, for this I don't have a nice solution yet, because it seems that IIS can only redirect a 404 error to a HTML page. If this is the case then I would have to write JavaScript to redirect the user to the search page, but then I'm not sure if I can retrieve the original URL request. I would like to know if anyone has done something like this and maybe has a better cleaner solution. I don't like the fact that I have altered the core.

I'm a senior software developer/architect with a small company in the Netherlands specialized in e-commerce. We use DotNetNuke as our platform for building the presentation layer for our solutions.

You are not authorized to post a reply.
Forums > Projects > Friendly Urls > URL Rewriter and DotNetNuke Search



ActiveForums 3.7