63cacd882cbd571458bb6dfb8945ccfbfe8a1bd3
[paste/130.git] / gistfile1.txt
1 [aaron@parecki.com www]$ cat .htaccess 
2 RewriteEngine on
3 RewriteCond %{QUERY_STRING} resource=acct:(.+)
4 RewriteRule ^\.well-known/webfinger /profile/%1? [L]
5
6 [aaron@parecki.com www]$ cat profile/aaron@parecki.com
7 {
8   "subject": "acct:aaron@parecki.com",
9   "links": [
10     {
11       "rel": "http://webfinger.net/rel/avatar",
12       "href": "http://aaronparecki.com/images/aaronpk.png"
13     },
14     {
15       "rel": "http://webfinger.net/rel/profile-page",
16       "href": "http://aaronparecki.com/"
17     },
18     {
19       "rel": "me",
20       "href": "http://aaronparecki.com/"
21     }
22   ]
23 }
24