[FOLIO-966] Enable URL redirection for dev.f.o Created: 06/Dec/17 Updated: 12/Nov/18 Resolved: 22/Dec/17 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Task | Priority: | P3 |
| Reporter: | David Crossley | Assignee: | Peter Murray |
| Resolution: | Done | Votes: | 0 |
| Labels: | devweb | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 1 hour | ||
| Original estimate: | Not Specified | ||
| Issue links: |
|
||||||||||||||||||||
| Sprint: | |||||||||||||||||||||
| Description |
|
There will be some re-arrangement of docs. There are links from each of the many repositories. At least for the important pages, enable URL redirect. |
| Comments |
| Comment by David Crossley [ 06/Dec/17 ] |
|
Some constraints: AWS S3 Jekyll |
| Comment by David Crossley [ 06/Dec/17 ] |
|
Possibility: jekyll-redirect-from |
| Comment by David Crossley [ 06/Dec/17 ] |
|
Possibility: AWS S3 "redirection rules": Peter Murray I am not familiar enough with that. Are those the relevant docs? Can we use a configuration file rather than the console? |
| Comment by Peter Murray [ 11/Dec/17 ] |
|
Yes – that is the right area. It looks like there are two options available: 1. Upload a zero-byte file at the old file path/name and add an attribute to that file that redirects to the new location. Personally, I think the second option is better. Leaving zero-byte files around is quite messy, and the XML syntax for option 2 is quite approachable. What I think we'll need to do is store the XML redirection file in the folio-org/folio-org.github.io repo and add a post-build step that pushes that XML file to the S3 configuration endpoint. Very doable. |
| Comment by David Crossley [ 11/Dec/17 ] |
|
That sounds very good Peter. Thanks. |
| Comment by David Crossley [ 12/Dec/17 ] |
|
I will get a basic configuration file started. |
| Comment by David Crossley [ 13/Dec/17 ] |
|
There is an initial file in a branch. Over to you. |
| Comment by Peter Murray [ 21/Dec/17 ] |
|
Excellent – thank you. |
| Comment by Peter Murray [ 22/Dec/17 ] |
|
In order to make this work, I needed to convert the XML to JSON in order to use the [put-bucket-website CLI command](http://docs.aws.amazon.com/cli/latest/reference/s3api/put-bucket-website.html). The semantics are the same. |