Enable r/ Shortcuts
Type r/docs in your browser → instantly open any team link. Works like Google's go/.
What is r/?
Instead of sharing https://docs.google.com/document/d/1a2b3c..., just say r/docs in Slack, meetings, or your address bar. Everyone on your team (or just you, locally) gets instant access.
r/jira/123
→ Jira ticket
r/eng/runbook
→ On-call page
r/my-prs
→ Your PRs (per-user)
Just for me
Add 127.0.0.1 r to your hosts file. 30 seconds, no IT needed.
Recommended for personal use →
For my company
Add a DNS record so r works for everyone on the office network.
For IT admins →
Just for me — hosts file
30 secOpen PowerShell as Administrator
Hit Win, type PowerShell, right-click → Run as Administrator. Click Yes.
Run the script (copy & paste)
powershell -ExecutionPolicy Bypass -Command "Add-Content -Path $env:windir\System32\drivers\etc\hosts -Value '127.0.0.1 r' -Force; Write-Host 'Done! Try r/docs in your browser.'"
Or download and double-click: add-r-host-windows.ps1
Verify — open http://r/
Should show Redirector. If you see a search page, fully close and reopen your browser.
Troubleshooting Windows
- Access denied: You must run PowerShell as Administrator.
- Still not working: Run ipconfig /flushdns then restart Chrome.
- Antivirus blocks hosts: Allow the edit or add 127.0.0.1 r manually via Notepad as Admin.
Safe & reversible: This only adds one line pointing r to your own computer. Remove it anytime by deleting 127.0.0.1 r from the same file.
For IT — Company-wide (everyone at once)
Add one DNS record so r works for the whole office, no per-laptop setup.
Cloudflare
Type: A
Name: r
Content: YOUR_SERVER_IP
TTL: Auto
Internal DNS / AD
A record: r → 10.0.0.5 (your redirector server)
Or CNAME: r → redirector.company.com
How to verify company DNS
# should return your server IP
curl -I http://r/health
# should be 200
Make r/ even faster — browser search
Type r + Tab + your shortcut — no need to type full `http://r/`.
Chrome / Edge
Settings → Search engine → Manage → Add:
Search engine: Redirector
Keyword: r
URL: %s → https://r.company.com/%s
Or local: http://r/%s
Firefox
Bookmarks → Add bookmark:
Location: http://r/%s
Keyword: r
Then type r docs in address bar.
FAQ
Is it safe? Can I undo it?
Yes — it only maps r to your own machine (127.0.0.1). Delete the line from your hosts file to undo. No data leaves your device.
r/ shows my search engine, not Redirector
Fully quit your browser (not just close tab) and reopen. Chrome sometimes caches the old non-existent host. Also clear `chrome://net-internals/#dns` → Clear host cache.
Can I use go/ instead of r/?
Yes — add 127.0.0.1 go as well, or set hostnames in data/redirect.config.json. Then use go/docs.
Company wants r.company.com not plain r
Works too — just use DNS for r.company.com and set that as your redirector's public URL. Short links become r.company.com/docs.