Skip to content

Instantly share code, notes, and snippets.

@swaminator
Created November 27, 2018 21:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swaminator/0c598fabdb222c39a6bcce41a48233fb to your computer and use it in GitHub Desktop.
Save swaminator/0c598fabdb222c39a6bcce41a48233fb to your computer and use it in GitHub Desktop.
Amplify Console - Trailing slashes
In the Amplify Console, navigate to Rewrites and redirects. Add the following depending on what you want:
Case 1:
Actual content location: /about/index.html
What user types in browser: /about/index.html
What user sees in browser: /about/
Configure in Amplify Console: /about/index.html /about/ 301
Case 2:
Actual content location: /about.html
What user types in browser: /about.html
What user sees in browser: /about
Configure in Amplify Console: /about.html /about 301
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment