HttpStatus
From Charlie.Huggardlee.Net
| Mediawiki Extension |
|
Author: Charlie Huggard License: CC by-nc-sa 3.0 Download: Link
|
HttpStatus is a mediawiki extension developed to enable a custom HTTP status to be returned when a user visits certain pages in the Project namespace. The idea being that one could setup pages for error documents (using the Apache ErrorDocument directive) as wiki articles and thus maintain the general look & feel of the website while still returning the proper error code (e.g. not 200). Needless to say, this extension is limited to existing project pages, as a non-existing page isn't very custom, and error handlers seem best suited to the project namespace above any other.
Usage
- Create Custom Error Handler
- For example, Project:Not_Found
- Specify the proper error document in your Server config or .htaccess
- In this case
ErrorDocument 404 /Project:Not_Found
- In this case
- Use a system message to specify the proper HTTP code
- This is found at
Mediawiki:httpstatus-Article_name. example: Mediawiki:httpstatus-Not_Found
- This is found at
or read what others have said
Facts about HttpStatusRDF feed
| Author | Charlie Huggard + |
| Download | http://charlie.huggardlee.net/downloads/mediawiki/extensions/HttpStatus.php + |
| License | CC by-nc-sa 3.0 + |

