Giter Site home page Giter Site logo

404-fallback's Introduction

instead of displaying a 404, redirect to another site preserving the relative path.

image

Note: This repo is now archived as I'm no longer interested in developing this in a personal capacity. Contact me if you want commercial support.

404-fallback's People

Contributors

cameronterry avatar svandragt avatar

Watchers

 avatar  avatar

Forkers

cameronterry

404-fallback's Issues

Exception

Box to list exceptions.
Maybe a page/post picker, or some kind of regex.

Need more usecases.

Use plugin submenu

$submenu['plugins.php'][15] = array( __( 'Plugin Editor' ), 'edit_plugins', 'plugin-editor.php' );

update readme

  • what should be in a good readme?

  • examples?

  • write readme

301 redirect option

Do you want to redirect from the old to the new site (new site on a new domain), then a 301 redirect might be more useful
if you're redirecting from the new to the old (new site replaces old, old migrated away), then a 302 might be more appropriate.

Option to explicitly redirect the homepage

With WordPress if you want the homepage to be not found, you have to

  1. change the "Your homepage displays" setting in Settings > Reading to "a static post". Otherwise WP will search the template hierarchy and attempt to display any existing post.
  2. unpublish the static post, to return a 404.

The interface displays this state incorrectly, where a page is set, but it appears as if no page is set:
image

It would be nicer to have a third radio button to override this behaviour and return the homepage as a 404, regardless of the setting.
Also show this on the plguni settings page.

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.