window.location javascript php

window.location.href = 'https://stackoverflow.com';
Worrisome Wolf