HttpStatus

From Charlie.Huggardlee.Net

Jump to: navigation, search
Mediawiki Extension
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

  1. Create Custom Error Handler
    For example, Project:Not_Found
  2. Specify the proper error document in your Server config or .htaccess
    In this case ErrorDocument 404 /Project:Not_Found
  3. Use a system message to specify the proper HTTP code
    This is found at Mediawiki:httpstatus-Article_name. example: Mediawiki:httpstatus-Not_Found



Name (required):

Website:

Comment:

To submit your comments, please solve the captcha.

or read what others have said

Web Search
Google
Personal tools