• Login
  • Register

DNN Forums

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

Logging out causes 404 error

You are not authorized to post a reply.

Basic Member

Basic Member

    When i logout of dnn 9.8, i hit a 404 error with the following message:

    Sorry, the page you are looking for cannot be found and might have been removed, had its name changed, or is temporarily unavailable. It is recommended that you start again from the homepage. Feel free to contact us if the problem persists or if you cannot find what you’re looking for.

    I am sure that i caused it by changing home pages. i renamed my old home page, then renamed the new home page, then used the site settings interface to select the new home page. after that logout redirection fails.

    i know that i could explicitly set it in site settings, but since i didn't have to do that before, i don't want to do so now. the previous behavior was to stay on the page where logout was invoked.

    the url shown when the 404 error is displayed is:

    i thought that there were friendly url rewriters at work, but it appears broken at this point.

    same problem occurs with login. i would like to direct the user to wherever he was trying to go before being stopped by login.

    Basic Member

    Basic Member

      the problem seems resolved after doing the following

      1. set redirection for login and logout to home  page
      2. logout to test
      3. set redirection for login and logout to
      4. logout -> no more 404 errors
      5. login -> no more 404 errors.


      Veteran Member

      Veteran Member

        If this happens again, the URL tells you the page causing the problem. In your case the tabid/0 part of the URL says that it is trying to go to the page with tabid equal to zero. You can look this up in the database's Tabs table, and I guess that there is no such tab. Setting the redirects gives you an actual target for the redirection.
        Joe Craig
        DNN MVP
        Patapsco Research Group

        Veteran Member

        Veteran Member

          Happened to me too, in DNN 9.8.x so far. Changing the pages (in website settings) to redirect after login and logout to the start page fixed the problem (and if the login was not called from the start page, the redirect is going to the page visited befor, as the querystring obviously overrules the setting).

          Yes, this is a bug, but you can use this as a workaround in the meantime.

          Happy DNNing!

          Happy DNNing!

          Michael Tobisch

          dnnWerk Austria
          DNN Connect
          You are not authorized to post a reply.

          These Forums are dedicated to 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. 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.

          Would you like to help us?

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

          Get Involved