DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Getting issue related to non existing child page

Sort:
You are not authorized to post a reply.





New Around Here





    Getting issue related to page:

    If we hit invalid page(not existing) in browser through parent page like: /Article/1234124

    Then it alway redirect to article page. Is there any setting in dnn to point this page to 404 page 

    Thanks in advance









      If you're using DNN 9, Settings>Site Settings>Site Behavior





      New Around Here





        Thanks Francisco Pérez Andrés

        But still its not working .when child pages is not exist ,its always redirecting to parent page.
        example:
        url: /Article/1234124
        existing behaviour: redirect to Article page
        expected: 404 error






        Veteran Member





          Posted By Anjali on 10 Sep 2019 06:09 AM

          Getting issue related to page:

          If we hit invalid page(not existing) in browser through parent page like: /Article/1234124

          Then it alway redirect to article page. Is there any setting in dnn to point this page to 404 page 

          Thanks in advance

          Side question. We have some issues with users that post in the "wrong" forum.
          Did you see that this was in the "About this website" forum? (I'll move it to the right forum now)

           

           






          Veteran Member





            Given that the URL is /Article/1234124, I would guess that this is one of those dynamically generated pages, and that the article (1234124) is really treated as a querystring parameter, and that the actual URL is something like

            /article?articleid=1234124

            So, when this gets processed at the article page, there is no match to the parameter, so the article is not injected into the page, and the module displays the unmodified page.

            In other words, there isn't a missing child page. Instead, there is a parameter that's passed to the page, it doesn't exist, so the module on that page does something else.

            I'm not sure how this should be handled, but the behavior described of showing the unmodified article page is one way to do it. Another way would be to post an error to the page saying something like "the article you have requested doesn't exist." A third way to do this would be to redirect to a 404 page. But, these choices or another is a module's responsibility, not DNN's.

            That's the way I understand it, and it's they way that a blog module that I use on several sites works.
            Joe Craig
            DNN MVP
            Patapsco Research Group





            Veteran Member





              Another way to handle this can be to add a new URL rewrite rule in DNN (SiteUrls.config) or the web.config.  

              You are not authorized to post a reply.

              These Forums are dedicated to the discussion of DNN Platform.

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

              1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
              2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
              3. 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.
              4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
              5. No Flaming or Trolling.
              6. No Profanity, Racism, or Prejudice.
              7. Site Moderators have the final word on approving / removing a thread or post or comment.
              8. English language posting only, please.

              Would you like to help us?

              Awesome! Simply post in the forums using the link below and we'll get you started.

              Get Involved