[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:
Relates
relates to FOLIO-1174 Redirected URLs in 'dev.folio.org' go... Closed
relates to FOLIO-1179 Tidy all documentation in repositorie... Closed
relates to MODCXMUX-7 Return diagnostics in resultInfo Closed
relates to FOLIO-832 Build and deploy dev website via CI Closed
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":
http://docs.aws.amazon.com/AmazonS3/latest/user-guide/static-website-hosting.html
http://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html

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.
2. Specify redirects for an entire bucket in an XML file.

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.

Generated at Thu Feb 08 23:09:50 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.