Skip to main content
3 of 4
edited title

Where should one ask and answer a question where the Q is more a Super User topic, and the A is more a Server Fault topic?

My answer involves networking-related infrastructure administration, specifically DNS. The question is more about being a power browser user.

I guess the particulars - that is, the Q and A belong in a comment, but I doubt they'd fit so I'll put 'em here for now.

Q: URLs for articles in PubMed are unreasonably long, e.g. https://www.ncbi.nlm.nih.gov/pubmed/1, where 1 is the article's 'PMID'. What's a short alternative? (This question could be generalized, but I don't know of an answer that is site-independent.). There's gotta be an easier way than using an URL shortener each time! Many researchers use these things all day every day...

I've done a bunch of googling and tried a bunch of URLs that one would want to have work, like https://pubmed.gov/1, and none of them worked.

A: Use an URL like http://p.elvey.com/1 - it just works. And if you want to know how I did it and/or to set up your own URL redirect (say, if you don't want to trust me) here's how I did it.

I had used the service at ebayitem.com in the past, and wanted something similar, but no on seemed to have done it. I logged into my DNS management system set up a few different hostnames (A records) with IPs of the PubMed servers, and others as URL redirects, to see if I could make one that worked. I found that setting up the hostname p as a 301-style URL redirect to http://www.ncbi.nlm.nih.gov/pubmed was the best solution, resulting in the shortest URLs. It works perfectly, and should be stable at least as long as I'm breathing or my business is around. And HSTS upgrades it to a secure connection.

I set up an URL redirect in the "DNS" settings for a domain I control. (Technically, an URL redirect relies on more than just a DNS redirect, but most registrars and DNS providers support them, so let's ignore that.)

https://www.ncbi.nlm.nih.gov/pubmed/25545022 shortens to
[p.elvey.com/25545022][1] !

PS. Ah, damn. After all that, I thought to check a couple more hosts. Yup. [pubmed.com/25545022][2] works great, and the domain is registered to the NIH. Still, both could be improved. Neither is entirely over HTTPS, but could be. And someone else is going to google and find this Q&A. [1]: http://p.elvey.com/25545022 [2]: http://pubmed.com/25545022