Changes between Version 2 and Version 3 of django_apache_and_mod_rewrite


Ignore:
Timestamp:
09/06/2007 11:04:13 PM (8 years ago)
Author:
anonymous
Comment:

minor typo

Legend:

Unmodified
Added
Removed
Modified
  • django_apache_and_mod_rewrite

    v2 v3  
    77The [PT] option of a mod_rewrite rule ensures that.
    88
    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 an 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.
     92) 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.
Back to Top