dlang.org endpoint for permanent links to DIPs
Petar
Petar
Fri Jun 5 10:55:10 UTC 2020
On Friday, 5 June 2020 at 06:53:13 UTC, Jacob Carlborg wrote:
> On 2020-06-03 15:25, Seb wrote:
>
>> [...]
>
> An alternative would be, for a URL like this:
>
> https://dips.dlang.org/1234
>
> Extract everything after the slash, "1234" in this case, and
> check a list of URLs to redirect to:
>
> https://github.com/dlang/DIPs/blob/master/DIPs/archive/DIP1234.md
> https://wiki.dlang.org/DIP1234
> https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1234.md
> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1234.md
> ... and so on
>
> Redirect to the first one that exists. I don't know if that's
> possible to do directly in Apache, or if an additonal server
> side process is required to handle this.
>
> I remember we did something similar at work for server side
> caching of web pages. But that checked a local file instead of
> another URL. That was purely done inside Apache.
It's already done: https://github.com/dlang/dlang.org/pull/2811
For example:
https://dlang.org/dips/1
https://dlang.org/dips/75
https://dlang.org/dips/1018
;)
P.S. Thanks, Dennis!
More information about the Digitalmars-d
mailing list