Changes between Version 3 and Version 4 of django_apache_and_mod_rewrite


Ignore:
Timestamp:
Sep 8, 2007, 10:03:36 PM (17 years ago)
Author:
AdamV
Comment:

typo

Legend:

Unmodified
Added
Removed
Modified
  • django_apache_and_mod_rewrite

    v3 v4  
    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 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.
     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 lose your neat urls in the address bar.
Back to Top