Python - URL Redirection
Last updated
Was this helpful?
Was this helpful?
GET /redirect?newurl=newsitedef redirector():
landing_page = request.args.get('newurl')
return redirect(landing_page, 302)http://0.0.0.0:5000/redirect?newurl=newsitehttp://0.0.0.0:5000/redirect?newurl=https://www.google.com