from flask import Flask from flask import send_from_directory app = Flask(__name__) @app.route('/') def home(): return 'Hello, World!' @app.route('/ieltsonline.com/') def send_report(path): if path.endswith("/"): path = path+ "index.html" return send_from_directory('ieltsonline.com', path) @app.route('/about') def about(): return 'About' if __name__ == '__main__': app.run("0.0.0.0",3001)