Tag Info

New answers tagged

1

www. is an automatic alias. (See http://www.chickenaday.appspot.com/ vs http://chickenaday.appspot.com/). Why force the user? If you do want to redirect, you could try this untested snippet of slightly modified code from http://stackoverflow.com/a/10964868/3164117: from urlparse import urlparse, urlunparse @app.before_request def redirect_nonwww(): ...



Top 50 recent answers are included