window.location JavaScript PHP

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