GithubHelp home page GithubHelp logo

st2ne / yourls-404-if-not-found Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yourls/404-if-not-found

0.0 0.0 0.0 9 KB

Redirect with a 404 when short URL is not found

License: Do What The F*ck You Want To Public License

PHP 100.00%

yourls-404-if-not-found's Introduction

YOURLS plugin : 404 if not found Listed in Awesome YOURLS!

By default and by design, when a requested short URL is not found, YOURLS redirects to the site root with a "302 temporary redirect" header.

From the source:

yourls_redirect( YOURLS_SITE, 302 ); // no 404 to tell browser this might change,
                                     // and also to not pollute logs

This plugin outputs a default "404 not found" error page instead.

Installation

  1. In /user/plugins, create a new folder named 404-if-not-found.
  2. Drop these files in that directory.
  3. Go to the Plugins administration page (eg. http://sho.rt/admin/plugins.php) and activate the plugin.
  4. Have fun!

License

Do whatever the hell you want with this.

yourls-404-if-not-found's People

Contributors

ozh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.