View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000411 | WackoWiki | handler | public | 2012-02-04 06:42 | 2015-02-26 09:40 |
Reporter | miqrogroove | Assigned To | administrator | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.3.0 | ||||
Target Version | 5.0.0 | Fixed in Version | 5.0.0 | ||
Summary | 0000411: Soft 404 With DoesNotExists | ||||
Description | When I hit a random URL on a wiki, such as /zzzz the response begins with status 200. I think this is bad for search engines. Such pages should respond with status 404. | ||||
Additional Information | In handlers/page/show.php if (function_exists("virtual")) header("HTTP/1.0 404 Not Found"); print(str_replace("%1",$this->href("edit","","",1),$this->GetResourceValue("DoesNotExists"))); This appears to be incorrect! I can get the desired behavior by changing to: if (!headers_sent()) header("HTTP/1.0 404 Not Found"); print(str_replace("%1",$this->href("edit","","",1),$this->GetResourceValue("DoesNotExists"))); Also note, the desired behavior only occurs with "cache" => "0". Otherwise, it seems to cache the DoesNotExists response and then it uses status 200 again on the second hit. | ||||
Tags | No tags attached. | ||||
|
I'll fix it for the R4.3.x branch too. |
|
Fixed: http://wackowiki.hg.sourceforge.net/hgweb/wackowiki/dev/rev/153ee3418cb0 I just applied the provided patch. |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-02-04 06:42 | miqrogroove | New Issue | |
2012-02-04 08:06 | administrator | Assigned To | => administrator |
2012-02-04 08:06 | administrator | Status | new => acknowledged |
2012-02-04 08:06 | administrator | Target Version | => 5.0.0 |
2012-02-04 09:22 | administrator | Relationship added | related to 0000264 |
2012-02-04 09:23 | administrator | Note Added: 0000842 | |
2012-02-04 19:01 | administrator | Note Added: 0000843 | |
2012-02-04 19:01 | administrator | Status | acknowledged => resolved |
2012-02-04 19:01 | administrator | Resolution | open => fixed |
2012-02-04 19:01 | administrator | Fixed in Version | => 4.3.x |
2012-02-04 19:01 | administrator | Target Version | 5.0.0 => 4.3.x |
2012-02-04 19:02 | administrator | Relationship added | related to 0000364 |
2012-02-04 19:08 | administrator | Note Edited: 0000843 | |
2015-02-26 09:40 | administrator | Fixed in Version | 4.3.x => 5.0.0 |
2015-02-26 09:40 | administrator | Target Version | 4.3.x => 5.0.0 |