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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 7 not redirecting to custom 404 when page not found in subdirectoriesDNN 7 not redirecting to custom 404 when page not found in subdirectories
Previous
 
Next
New Post
11/30/2015 3:22 AM
 

Hi there,

We're having an issue which I think is how the URL rewriting is "supposed" to work in DNN but we need a different behaviour.  The site works great in terms of redirecting to our custom 404 error page as long as you're in the root of the application, but when you're in a subdirectory for instance:  www.domain.com/subdirectory/wrongpage.aspx where the wrongpage.aspx wouldn't be found, the site shows that the page was found but redirects the user back to www.domain.com/subdirectory which is incorrect, it should redirect the user to the custom 404 error page.  I know that the URL rewriting gets done by the old Ifinity module and found this piece on their site:

"So, if you have a page called /path1 and you request /path1/nopage.aspx, then you'll get the /path1 page returned as normal.  The /nopage part of the path will be treated as a querystring. "

This is exactly my problem, for good SEO practices we need for this "nopage.aspx" not to redirect to /path1 but rather to the custom 404 error page, how do we achieve this?

Any and all recommendations would be greatly appreciated.

Kind Regards,
Anina

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 7 not redirecting to custom 404 when page not found in subdirectoriesDNN 7 not redirecting to custom 404 when page not found in subdirectories


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