OSGeo / spatialreference.org

spatialreference.org source code
https://spatialreference.org
MIT License
15 stars 6 forks source link

Generate a 404.html for not found files, and try to guess old links #1

Closed jjimenezshaw closed 10 months ago

jjimenezshaw commented 10 months ago

Google has some old links, like https://spatialreference.org/ref/epsg/anguilla-1957-british-west-indies-grid/ To see that just click the link to "Google it" in any reference system (as today. I hope Google is updating the information at some point).

With this PR we have a dedicated 404 page (with a similar style), and also try to find if the url was from a known reference system. In that case, a message is shown and redirected after 5 s.

404
File not found

However, apparently you want to visit

EPSG:2000
Anguilla 1957 / British West Indies Grid

Redirecting to http://spatialreference.org/ref/epsg/2000