Register   Login
     
  Latest Posts  
RE: Negative role tokens: ISNOTINROLE, ISAGENTNOTINROLE
by richardcook on 12/03/2008 11:01 PM
RE: Remove CAPTCHA when logged in?
by ba on 12/03/2008 10:22 PM
Admin and Host Users and Captcha
by ba on 12/03/2008 10:14 PM
RE: Notification on comment and multiple authors
by ba on 12/03/2008 8:54 PM
RE: How do I - templates
by cptkoi on 12/03/2008 8:19 PM
Notification on comment and multiple authors
by ba on 12/03/2008 8:14 PM
Private Messages 1.07 - Potential Display Name Bug
by blob150 on 12/03/2008 5:16 PM
Removal of "Actions" section...
by jlatulippe on 12/03/2008 5:08 PM
RE: MultiSelect Search on Multiple Checkbox
by smcculloch on 12/03/2008 3:46 PM
RE: Property Agent Latest Filter
by erikvb on 12/03/2008 3:45 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