39alpha / 39alpharesearch.org

39Alpha Research's Public Website
https://39alpharesearch.org
0 stars 0 forks source link

Random URLs don't lead to 404 page #22

Open colemathis opened 2 years ago

colemathis commented 2 years ago

If I do any random 39alpharesearch.org/page I don't get a 404, I get an IPFS message

ipfs resolve -r /ipns/39alpharesearch.org/page: no link named "page" under QmSCgfXQSxUuquyzwUuteomU9qwQJMdcTL897TwUyD3czB

dglmoore commented 2 years ago

You actually do get a 404 error:

[17 Aug 18:22] λ curl -v https://39alpharesearch.org/page
...
< HTTP/1.1 404 Not Found
...
<
ipfs resolve -r /ipns/39alpharesearch.org/page: no link named "page" under QmWJoGhptMQSQuHqmDaHNQQ5mxECeukQLnd1ckmvcSmivf
* Connection #0 to host 39alpharesearch.org left intact

But to your point, the message isn't very nice. It'd be better if we provided a 404 page. We technically do, but the IPFS node doesn't redirect. I need to look into options, e.g. nginx rewriting or IPFS settings.