Add shorturls to your Urls. path('r/', include('shorturls.urls')),

Go to the administration panel and add Shorturls.

a Shortname: foo and Url: https://bar.com/ means that 
whenever someone requests yoursite/r/foo they will be redirected to 
httpa://bar.com!
