from flask import Flask, redirect app = Flask(__name__) @app.route('/') def subpath(subpath): return redirect('https://www.b1ng.chat', code=302) @app.route('/') def index(): return redirect('https://www.b1ng.chat', code=302) if __name__ == '__main__': app.run()