diff --git a/ddcz/urls.py b/ddcz/urls.py index 531da21..b3b6680 100644 --- a/ddcz/urls.py +++ b/ddcz/urls.py @@ -21,15 +21,21 @@ re_path( r"^ikonky/(?P.+)$", RedirectView.as_view(url=f"{settings.USER_ICON_MEDIA_ROOT_URL}%(file)s"), - name="redirect_ikonky", + name="redirect-icons", + ), + re_path( + r"^fotogalerie/(?P.+)$", + RedirectView.as_view(url=f"{settings.PHOTOGALLERY_MEDIA_ROOT_URL}%(file)s"), + name="redirect-photogallery", ), # It's gone, Dave - re_path(r"^(moudrasova|img|static|skiny)/", RedirectView.as_view()), + re_path(r"^(moudrasova|img|static|skiny|chat)/", RedirectView.as_view()), ### Common pages for bots etc. path( "robots.txt", TemplateView.as_view(template_name="robots.txt", content_type="text/plain"), ), + path("/staticfiles/robots.txt", RedirectView.as_view(url="/robots.txt")), path( "ads.txt", TemplateView.as_view(template_name="ads.txt", content_type="text/plain"),