擅长:python、mysql、java
<p>我不习惯烧瓶,但是你可以设置一个与/^www/匹配的路由,然后重定向到不带“www”的url。在</p>
<p>您可能需要选中<a href="http://werkzeug.pocoo.org/docs/routing/#custom-converters" rel="nofollow">http://werkzeug.pocoo.org/docs/routing/#custom-converters</a>或<a href="http://werkzeug.pocoo.org/docs/routing/#host-matching" rel="nofollow">http://werkzeug.pocoo.org/docs/routing/#host-matching</a></p>