Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[Bug] Missing Pages Not Showing As Proper 404

edited February 2011 in Vanilla 2.0 - 2.8
Greetings,
I have migrated to Vanilla Forums. For most of my old pages, I was able to do a 301 redirect. However, for a few I was not. I was hoping these would just drop off. However, these pages still return a status of 200 vs. 404. Is there an easy way to correct this?

Example is below:
http://www.doggiepedia.com/pages/gallery/rocky-the-boston-terrier4.php

Thanks,
Eric

Comments

  • SS ✭✭
    Known problem.
    There are issues on Github.

    As stop gap solution you can add to:
    applications\dashboard\controllers\class.homecontroller.php
    public function FileNotFound() { header("HTTP/1.1 404 Not Found", True, 404) ...
  • edited February 2011
    Thanks... I went with the below update in the above mentioned file:

    public function FileNotFound() { header("HTTP/1.1 404 Not Found", True, 404); }

    Standard was:

    public function FileNotFound() { if ($this->DeliveryMethod() == DELIVERY_METHOD_XHTML) $this->Render(); else $this->RenderException(NotFoundException()); }

    Thanks for the help,
    Eric
Sign In or Register to comment.