Forums

non-www. to www. redirects

Hi,

Just wondering what the best course of action would be to set up redirects/rewrite rules?

On searching the forum it said you don't support .htaccess files, should this configuration happen within the app itself? Using Flask.

Cheers

In my situation I'm doing that through the domain registration site (godaddy for me usually) with a 301 redirect. I've never needed to do it on the webserver level or in application code.

Right, what studentrentit said. there's some help here: https://www.pythonanywhere.com/wiki/NakedDomains

EDIT: Posted on wrong thread, can't delete?