Skip to content

Commit 6202b1e

Browse files
committed
www.python.cz -> python.cz redirect.
Fixes pyvec#98.
1 parent 5bfb203 commit 6202b1e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎pythoncz/views.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ def jobs_en():
6464
return render_template('jobs_en.html', data=jobs.data, lang='en')
6565

6666

67+
# Subdomain redirect
68+
69+
@app.route('/', subdomain='www')
70+
def subdomain_redirect():
71+
return redirect(url_for('index_cs'))
72+
73+
6774
# Redirects of legacy stuff
6875

6976
@app.route('/index.html')

0 commit comments

Comments
 (0)