GSA / datagov-wptheme

Data.gov WordPress Theme (obsolete)
https://www.data.gov
Other
1.88k stars 411 forks source link

Bare Domain Should Redirect to www #774

Closed yasyf closed 7 years ago

yasyf commented 7 years ago

Right now, going to https://data.gov gives a 503. It should probably nicely 301 to https://www.data.gov instead!

kvuppala commented 7 years ago

@yasyf thank you for reporting the issue.

There was a temp issue causing the redirect of https://data.gov to https://www.data.gov not to work , everything works fine now.

hkdctol commented 7 years ago

Confirmed redirect is working.

jgarber623-gov commented 5 years ago

This appears to be an issue again. Output from curl:

$ curl --head http://data.gov
HTTP/1.1 302 Found : Moved Temporarily
Location: https://data.gov/
Connection: close
Cache-Control: no-cache
Pragma: no-cache

All good there: http://data.gov returns a 302 (preferably that'd be a 301 permanent redirect, but hey...).

$ curl --head https://data.gov
HTTP/1.1 503 Service Unavailable
Content-Length: 62
Connection: close
Cache-Control: no-cache,no-store
Pragma: no-cache

The bare domain accessed via https:// bombs out with a 503 error.

jgarber623-gov commented 5 years ago

Additional data point: http://www.data.gov successfully redirects to https://www.data.gov:

$ curl --head http://www.data.gov
HTTP/1.1 301 Moved Permanently
Server: CloudFront
Date: Wed, 10 Oct 2018 17:32:43 GMT
Content-Type: text/html
Content-Length: 183
Connection: keep-alive
Location: https://www.data.gov/
X-Cache: Redirect from cloudfront
Via: 1.1 93bbe0e7a09d324975fb7968b790db93.cloudfront.net (CloudFront)
X-Amz-Cf-Id: onaQD15vbbwNUuMvGqY85T4El3D_nY0wWs2s6E9OMajytAQI0F_-CA==