Skip to content

Commit

Permalink
Fix more redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
Almad committed Jan 5, 2025
1 parent 2a45e32 commit ffc7677
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ddcz/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,21 @@
re_path(
r"^ikonky/(?P<file>.+)$",
RedirectView.as_view(url=f"{settings.USER_ICON_MEDIA_ROOT_URL}%(file)s"),
name="redirect_ikonky",
name="redirect-icons",
),
re_path(
r"^fotogalerie/(?P<file>.+)$",
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"),
Expand Down

0 comments on commit ffc7677

Please sign in to comment.