#microformats 2020-08-26

2020-08-26 UTC
gRegorLove, [fluffy], Toomim, KartikPrabhu, Pankajkumar, strugee, [tantek], Phae, [KevinMarks], [Jean_Philippe_] and [pfefferle] joined the channel
#
[pfefferle]
[aaronpk] [tantek] the url shortener ufs.cc is also not working after the transfer to the new host
#
aaronpk
Huh that one wasn't on the list at all, I don't remember seeing any config for it on the old server
[tb] joined the channel
#
Zegnat
Hmm. Another one of those magic redirects that seemingly did not have any config? Looks like /w/ just redirects to /wiki/ and ufs.cc just redirects to microformats.org
#
Zegnat
mt.microformats.org/w/vcp works
#
aaronpk
okay yeah ufs.cc does not appear to be hosted on that server at all
#
aaronpk
ok fixed!
#
aaronpk
it was a badly translated .htaccess rule
#
aaronpk
comments in the htaccess file would have helped describe what the rules do
gRegorLove and [pfefferle] joined the channel
#
[pfefferle]
aaronpk++ cool, thanks!
#
Loqi
aaronpk has 12 karma in this channel over the last year (244 in all channels)
#
[pfefferle]
Zegnat++ also thanks ;)
#
Loqi
Zegnat has 7 karma in this channel over the last year (70 in all channels)
[KevinMarks], [grantcodes], [fluffy], gRegorLove, cjw6k, [Murray], jamietanna, [jeremycherfas], [tantek] and [chrisaldrich] joined the channel
#
[tantek]
[pfefferle]++ thanks for noticing! yes it was done with htaccess rules ages ago
#
Loqi
[pfefferle] has 1 karma in this channel over the last year (9 in all channels)
#
[tantek]
aaronpk I have to admit I probably added those rules without comments because they seemed "simple". Are there guidelines for htaccess comments?
#
aaronpk
i was thinking a sentence explaining what it does, and also providing an example URL to confirm that it works
#
aaronpk
for example, the htaccess rule is `RedirectPermanent /w http://microformats.org/wiki` but it's not clear from looking at that unless you are familiar with htaccess rules that it will actually redirect all paths under `/w` to the corresponding `/wiki` URL, e.g. `/w/vcp` actually redirects to `/wiki/vcp`
#
Loqi
microformats.org
#
aaronpk
so when I translated it to nginx, I translated it as just redirect exactly `/w` to `/wiki`
#
aaronpk
a comment like "supports short URLs like ufs.cc/w/vcp" would have made that much clearer as to what it was actually for
#
aaronpk
there's also no references to ufs.cc in there at all, so there was no way to know that domain exists or that it should have been tested in the migration
KartikPrabhu joined the channel
#
[tantek]
many of the popular wiki pages had explicit ufs.cc shortlinks near the top
#
[tantek]
and yes, I agree that htaccess rules are fairly unobvious / subtle in how they work. it was frustrating to learn
jamietanna, [fluffy], [tb], [Jose_Leiva], [chrisaldrich], [KevinMarks] and [snarfed] joined the channel