custom404/README.md

918 B

Custom 404

JQuery plugin for custom error pages

Info

A jQuery plugin that allows you to use custom error pages. To be used when you can not edit the file .htacces Apache or when using applications on non-ASP on an IIS server. Simply checks if the requested resource is available when you open a link.

Usage

Add in head:

<script src="https://raw.github.com/Rnhmjoj/Custom404/master/jquery.custom404.min.js" type="text/javascript"></script>

In a script:

$(document).ready(function(){
	$("a#test").custom404({404: "404page.html"});
});

Options are statusCode: url. All the http status codes are fine. If you do not select anything by default all the links on the page will be used.

You can find an example here.

License

Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html