pages-core icon indicating copy to clipboard operation
pages-core copied to clipboard

Support for 301 redirects

Open gemfarmer opened this issue 8 years ago • 9 comments

18F site would like to be able to redirect 18f.gsa.gov/feed/ to 18f.gsa.gov/feed.xml (the current Jekyll standard) with a HTTP redirect instead of a meta-refresh.

Why? Maintaining our audience as we migrate the site is important and not all devices will redirect RSS feeds with a meta-refresh. This will likely be important for many blogs using Federalist, so this update should be useful beyond this particular case. This is outlined in more detail in this issue.

Todo by 2022-01-20

  • [ ] Have https://github.com/18f/pages-redirects repo be migrated to the cloud-gov org for Pages ownership.

gemfarmer avatar Feb 14 '17 17:02 gemfarmer

Currently working to understand if Jekyll and support 301 redirects

wslack avatar Feb 15 '17 00:02 wslack

When I had looked before it didn't look like there was support, but this stackoverflow thread has me thinking that I could actually solve this at the repo level after all

http://stackoverflow.com/questions/10178304/what-is-the-best-approach-for-redirection-of-old-pages-in-jekyll-and-github-page

gemfarmer avatar Feb 15 '17 06:02 gemfarmer

We may want to look here for setting up redirects: https://github.com/18F/federalist-docker-build/blob/master/publish.sh#L31-L35

Here's the docs for that S3 configuration: http://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html

jmhooper avatar Feb 15 '17 20:02 jmhooper

@lauraGgit brought up supporting redirects in the context of nicer URLs for single-page apps (so that an SPA doesn't have to use #-style addresses).

For reference, here's how Netlify allows users to specify custom redirects: https://www.netlify.com/docs/redirects/

jseppi avatar Jul 25 '17 18:07 jseppi

Setting as medium as we could do it via config/custom file/etc.

wslack avatar May 16 '18 17:05 wslack

Proxy supports redirects in https://github.com/cloud-gov/pages-proxy/pull/176. Next steps are identify a possible pricing model to support managing site redirects.

apburnes avatar Nov 28 '22 19:11 apburnes

We will be migrating https://github.com/18f/pages-redirects into the cloud-gov GH org and begin the process of publishing the service offering.

apburnes avatar Jan 09 '23 19:01 apburnes

Add ADR for review https://github.com/cloud-gov/internal-docs/pull/82

apburnes avatar Jan 23 '23 19:01 apburnes

Current implementation is waiting on ATO

apburnes avatar Feb 22 '23 18:02 apburnes

Completed by https://github.com/cloud-gov/internal-docs/issues/148

apburnes avatar Jun 03 '24 18:06 apburnes

Congrats @apburnes!!!!

wslack avatar Jun 05 '24 04:06 wslack