I have a url like
- www.example.com/events/A/
- www.example.com/events/B/
etc
I would like to change that to
- www.example.com/portal/A/ and likewise.
This can be achieved at Apache level, but can I do it in django using some middleware or something.
I have tried using RedirectView like this
url(r'events/', RedirectView.as_view(url='/portal/')),
But that just stops at /portal and anything after the events/ is ignored.
Is there a way to do this in django