Riverscapes / RaveAddIn

RAVE AddIn for ArcGIS
http://rave.riverscapes.xyz/
GNU General Public License v3.0
1 stars 3 forks source link

HTML Redirect from https://rave.riverscapes.net to https://viewer.riverscapes.net #189

Closed joewheaton closed 4 months ago

joewheaton commented 5 months ago

We should (@philipbaileynar) fix all the old rave links to viewer links (https://rave.riverscapes.net to https://viewer.riverscapes.net), but short of that, we will NOT catch them all. Please put redirect in place.

MattReimer commented 5 months ago

I've done this but the domain may not roll over properly for a few hours.

@joewheaton close this when the redirect works for you.

BTW This is a more complex process since we moved our DNS to Route53 from Gandi. It means creating empty S3 buckets with static web hosting enabled for every redirect we want:

https://repost.aws/knowledge-center/redirect-domain-route-53

MattReimer commented 5 months ago

Update. This won't work for HTTPS redirects. I'm looking for a new solution

MattReimer commented 5 months ago

Ok. I think I've got it now.

@joewheaton same notes as before. Close this issue when the redirect works for you.

Fot my own notes, this is the new process for implementing a single web redirect (because I keep forgetting):

  1. Make an S3 bucket named as the old URL rave.riverscapes.net with web hosting redirection enabled that points to the address you want to redirect to viewer.riverscapes.net
  2. Put a file called DON'T DELETE ME, I'M A REDIRECT.TXT in the bucket so you don't accidentally delete it later when you're auditing buckets.
  3. Create a new AWS SSL certificate and associated CNAME verification record in Route53 (this we should be able to re-use as long as it's a *.riverscapes.net domain repoint
  4. Create a Cloudfront web distribution that uses the SSL cert and points to the S3 bucket's web hosting endpoint
  5. Create an A record on Route53 that points to the Cloudfront web distribution.
joewheaton commented 5 months ago

Screenshot_20240130-193559.png

MattReimer commented 5 months ago

yup. still broken. I'll take another swing

joewheaton commented 4 months ago

Worked for me now! Thanks @MattReimer