﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12662	Enforce Hostname Middleware	robballou	nobody	"For a recent project, I wanted to be able to enforce the hostname used in requests to a single domain (in this case, any requests like ""www.example.com"" would redirect to ""example.com""). Rather than use the redirect app, I felt this was better suited to middleware like the {{{ PREPEND_WWW }}} setting. So the following middleware will allow users to set an {{{ ENFORCE_HOSTNAME }}} setting for a single or multiple hosts (string or list).

I wasn't sure how to submit a patch for the middleware itself, so that is just attached as a file. I did create tests for the middleware though."		closed	Uncategorized	1.1		wontfix			Unreviewed	1	0	0	0	0	0
