Changes between Version 2 and Version 3 of django_apache_and_mod_rewrite
- Timestamp:
- Sep 6, 2007, 11:04:13 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
django_apache_and_mod_rewrite
v2 v3 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 nurl 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 loose 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 loose your neat urls in the address bar.