Skip to content
Redirect www URL addresses to non-www
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
redirect_to_non_www
.gitignore
LICENSE
MANIFEST.in
README.md
setup.py

README.md

django-redirect-to-non-www

Redirects www URL address to non-www.

Installation

pip install django-redirect-to-non-www
pip install git+https://git@github.com/lukasvinclav/django-redirect-to-non-www.git

Configuration

Open your settings file and append middleware redirect_to_non_www.middleware.RedirectToNonWww at the end of MIDDLEWARE list.

MIDDLEWARE = [
    # Other middleware classes
    'redirect_to_non_www.middleware.RedirectToNonWww',
]
You can’t perform that action at this time.