Skip to content

Instantly share code, notes, and snippets.

@poga
Last active July 20, 2017 20:44
Show Gist options
  • Save poga/0a2c5e604d4ab95caf1da7b552887b27 to your computer and use it in GitHub Desktop.
Save poga/0a2c5e604d4ab95caf1da7b552887b27 to your computer and use it in GitHub Desktop.
_redirect
  1. There's seem to have a delay for redirect rules to apply after the site is published, which makes debugging this frustrating.
  2. The comment in the first line of _redirect1 makes the rule on line 2 non-effective, even it's just a comment.
  3. _redirect2 works fine IIUC. but this is hard to confirm since netlify can't catch up my constant editing of redirect rules.
# /users.json company=:filter /company-filtered/:filter/0.json 200!
/users.json page=:p /users-:p.json 200!
/users.json /users-0.json 200!
/users.json page=:p /users-:p.json 200!
/users.json /users-0.json 200!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment