djangosnippets.org: Latest snippets tagged with 'permanent'http://djangosnippets.org/tags/permanent/2008-07-24T12:57:23.387728-05:00PermanentRedirectMiddleware
2008-07-24T12:57:23.387728-05:00marinhohttp://djangosnippets.org/snippets/909/<p>This is a simple middleware that redirects the exactly URL requested with the correct domain. It is useful when you have more than one domain (most of cases with "www." or IP) to access a website.</p>
<p>To make it works, download the snippet file as the name "permanent_redirect.py" and add …</p>
Freely redistributable