Forum Moderators: open
if(window.location.hostname !== 'www.example.com' && window.location.hostname !== '') window.location = 'https://www.example.com/'; if(window.location.hostname !== 'www.example.com' && window.location.hostname !== '') window.location = window.location.replace(window.location.hostname, 'www.example.com'); if(window.location.protocol+'//'+window.location.host !== 'https://www.example.com' && window.location.host !== '') window.location = 'https://www.example.com'+window.location.pathname+window.location.search+window.location.hash;