Skip to content

Commit

Permalink
Don't redirect errors to /wp-json/ (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
epicfaace committed Jul 5, 2020
1 parent 108d7b1 commit a87e803
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 0 additions & 3 deletions pages/_error.tsx

This file was deleted.

9 changes: 9 additions & 0 deletions pages/wp-json/[...slug].tsx
@@ -0,0 +1,9 @@
import Redirect from "../_redirect";

/**
* This page is called [...slug].tsx, which allows it to match arbitrarily nested paths.
* This means that all paths under https://stanforddaily.com/wp-json/... will be redirected
* to their corresponding https://wp.stanforddaily.com/wp-json/... paths.
*/

export default Redirect;
3 changes: 0 additions & 3 deletions pages/wp-json/index.tsx

This file was deleted.

0 comments on commit a87e803

Please sign in to comment.