We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31337
    • 258 Posts
    Quote from: Soda at Sep 01, 2006, 03:02 AM

    Hello, I have a solution without a hack (untill it is included in the next release):
    create a new plugin,put [tt]header("HTTP/1.0 404 Not Found");[/tt] in the content and check the event [tt]OnPageNotFount[/tt]

    That’s all.

    This needs to be tested as I can assure you the solution is almost likely not this simple. I think if you check the core code, that event isn’t getting called in every situation where a missing page happens and that’s why that whole stream of logic needs to be rewritten.
      • 27889
      • 415 Posts
      I agree with you, this is just a "temporary" solution.
      Have you been able to confirm whether or not Google likes this in their sitemap service?
      I don’t know, I don’t use sitemap.

        MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
        MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
        • 27889
        • 415 Posts
        I think I have the best solution, to be sure to have the correct status:

        Make a HTTP HEAD request on the page, and it return the real status of the page sending by the server. The script checkUrl in the DebugTool with somes small modifications can do that. The code must be checked by a real coder (I’m not a good programmer).
        here it is.
          MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
          MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
          • 31337
          • 258 Posts
          Quote from: Soda at Sep 02, 2006, 01:24 AM

          I think I have the best solution, to be sure to have the correct status:

          Make a HTTP HEAD request on the page, and it return the real status of the page sending by the server. The script checkUrl in the DebugTool with somes small modifications can do that. The code must be checked by a real coder (I’m not a good programmer).
          here it is.

          Soda that’s a great idea for writing a bot to check your site but it doesn’t address the core issue of this thread.
            • 27889
            • 415 Posts
            Sorry, we must find an other way. embarrassed
              MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
              MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
              • 26625
              • 1 Posts
              Is this bug really still open after almost a year? Or has it been fixed in some beta somethingorother? I must say: It’s rather annoying to have all of my old pages show up as valid when they don’t exist...
                • 22815
                • 1,097 Posts
                Fixed in betas of 0.9.5, I believe.
                  No, I don't know what OpenGeek's saying half the time either.
                  MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
                  Forum: Where to post threads about add-ons | Forum Rules
                  Like MODx? donate (and/or share your resources)
                  Like me? See my Amazon wishlist
                  MODx "Most Promising CMS" - so appropriate!
                  • 14050
                  • 788 Posts
                  I am experiencing this problem in 0.9.6. RC-3. Am I not setting something up correctly?

                  Here is my 404 page:
                  http://www.blueskyvineyard.com/page-not-found

                  And this is what the header response is:

                  #1 Server Response: http://www.blueskyvineyard.com/page-not-found
                  HTTP Status Code: HTTP/1.1 200 OK
                  Date: Sat, 19 May 2007 02:31:38 GMT
                  Server: Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a
                  X-Powered-By: PHP/4.3.11
                  P3P: CP="NOI NID ADMa OUR IND UNI COM NAV"
                  Cache-Control: private, must-revalidate
                  Set-Cookie: SN46377548cf8c2=4bdbefccbf6932918df186c51244467b; path=/
                  Connection: close
                  Content-Type: text/html; charset=UTF-8
                    Jesse R.
                    Consider trying something new and extraordinary.
                    Illinois Wine

                    Have you considered donating to MODx lately?
                    Donate now. Every contribution helps.
                    • 22303 MODX Staff
                    • 10,725 Posts
                    If you go directly to the URL your 404 is found at, it’s not going to return a 404 response, because that is found. Other URLs which do not get found should be forwarding their responses to the 404 page, and return the 404 header response, at the original URL. Your site seems to be redirecting all bad responses to the 404 URL with 200 response...??? Must have a plugin that is doing this invalid redirects...
                      • 14050
                      • 788 Posts
                      I have SEO Strict installed.  Let me disable that and see what response I get . . .

                      EDIT: That was it. I’ll go post this over in that thread then.
                        Jesse R.
                        Consider trying something new and extraordinary.
                        Illinois Wine

                        Have you considered donating to MODx lately?
                        Donate now. Every contribution helps.