How can I configure my Django project to redirect multiple slashes (symbol /
) to a single slash?
For example, I want to issue a HTTP response code 301 redirect
for this URL
https://mywebsite.com/path//to//id///
and redirect it to:
https://mywebsite.com/path/to/id/
How could that be done?