Changes between Version 3 and Version 4 of django_apache_and_mod_rewrite
- Timestamp:
- Sep 8, 2007, 10:03:36 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
django_apache_and_mod_rewrite
v3 v4 7 7 The [PT] option of a mod_rewrite rule ensures that. 8 8 9 2) Beware the trailing slashes ! Django, by default (there is an option) adds a trailing / to urls without it, by REDIRECTING to the url+/. So if you mod_rewrite a url to your django one, don't forget the trailing / or disable adding them, because else mod_rewrite will rewrite url to new_url and then django will redirect to newurl+/ and thus you'll lo ose your neat urls in the address bar.9 2) Beware the trailing slashes ! Django, by default (there is an option) adds a trailing / to urls without it, by REDIRECTING to the url+/. So if you mod_rewrite a url to your django one, don't forget the trailing / or disable adding them, because else mod_rewrite will rewrite url to new_url and then django will redirect to newurl+/ and thus you'll lose your neat urls in the address bar.