Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Netlify redirect file #20

Closed
apreshill opened this issue Sep 1, 2019 · 1 comment · Fixed by #34
Closed

Add Netlify redirect file #20

apreshill opened this issue Sep 1, 2019 · 1 comment · Fixed by #34
Assignees

Comments

@apreshill
Copy link
Collaborator

apreshill commented Sep 1, 2019

Redirects need to go from relative to base url https://stat545.com/ and either map onto:

  • bookdown chapters that exist
  • if no chapters exist, go back to original source repo published via GH Pages, so https://STAT545-UBC.github.io/STAT545-UBC.github.io/

Two things need to be done (https://github.com/gracelawley/practice-bookdown):

  1. Add _redirects file to root
  2. Make sure travis copies that over to the output directory
@gracelawley
Copy link
Collaborator

gracelawley commented Sep 4, 2019

Redirect rules:

  • anything that is previous .html and in bookdown --> redirects to bookdown
  • anything that is previous .md and in bookdown --> redirects to bookdown
  • anything that is previous .html and not in bookdown --> redirects to ghpages
  • any static image files (.jpg, .png) or data files (.csv, .json) that are not previous .html --> redirects to ghpages
  • all else (including all .Rmd, .md files, dir folders) --> 404

Things that need to be done:

  • Create a csv of html files that exists at https://stat545.com using the gh package
  • Create a csv of mappings for bookdown chapter headers -> original stat545 link
  • Create csv of netlify redirects mappings
    • Link up https://stat545.com links with bookdown chapters (if they exist)
    • Catch any missed deprecated content and add to the appendix
  • Make _redirects file and tell travis what to do with it

Also:

This was referenced Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants