diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-05-20 03:35:25 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-05-20 03:35:25 +0000 |
| commit | 35869c53ef4e78d79ced4b6a3d003a127fa5fdf1 (patch) | |
| tree | 912d2b1fc944a7202d10cfb12983c9d9c4bbe48f /docs/middleware.txt | |
| parent | e57e06d40bc68c5eb182035d1c90e8f6184b374d (diff) | |
Documented that CommonMiddleware will not append a slash to URLs containing a
period in the last component.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/middleware.txt')
| -rw-r--r-- | docs/middleware.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/middleware.txt b/docs/middleware.txt index 7dfa0f3af7..f3dbcb82d1 100644 --- a/docs/middleware.txt +++ b/docs/middleware.txt @@ -59,8 +59,12 @@ Adds a few conveniences for perfectionists: * Performs URL rewriting based on the ``APPEND_SLASH`` and ``PREPEND_WWW`` settings. If ``APPEND_SLASH`` is ``True``, URLs that lack a trailing - slash will be redirected to the same URL with a trailing slash. If - ``PREPEND_WWW`` is ``True``, URLs that lack a leading "www." will be + slash will be redirected to the same URL with a trailing slash, unless the + last component in the path contains a period. So ``foo.com/bar`` is + redirected to ``foo.com/bar/``, but ``foo.com/bar/file.txt`` is passed + through unchanged. + + If ``PREPEND_WWW`` is ``True``, URLs that lack a leading "www." will be redirected to the same URL with a leading "www." Both of these options are meant to normalize URLs. The philosophy is that |
