fsdsdf
This commit is contained in:
parent
2b37f07056
commit
607d3fbcce
1 changed files with 13 additions and 1 deletions
|
@ -123,4 +123,16 @@ def after_request(response):
|
|||
return response
|
||||
|
||||
|
||||
@app.route("/<path:path>", subdomain="www")
|
||||
@app.route("/<path:path>", subdomain="old")
|
||||
def sub_redirect(path):
|
||||
return redirect(f"https://{app.config['SERVER_NAME']}/{path}")
|
||||
|
||||
|
||||
@app.route("/", subdomain="www")
|
||||
@app.route("/", subdomain="old")
|
||||
def sub_redirect2():
|
||||
return redirect(f"https://{app.config['SERVER_NAME']}/")
|
||||
|
||||
|
||||
from files.routes import *
|
Loading…
Add table
Add a link
Reference in a new issue