support html5.org/r/* URLs.