I’ve been looking all over and can’t find what I’m looking for.
I’ve found a way to redirect urls without parameters and keywords – but how to do it with parameters?
I want to redirect this:
(r'^andelsboligforeninger/(?P<page>[\d]*?)/$', 'cooperatives'),
to this:
(r'^liste-over-andelsboligforeninger/(?P<page>[\d]*?)/$', 'cooperatives'),
It should be a permanent redirect. This will be good for the SEO, and I get so many debug mails because of googlebot.
It seems I’ve found my answer in the django docs – I didn’t look hard enought after all!
https://docs.djangoproject.com/en/1.1/ref/generic-views/