When you change your website’s URL or move a file to a new location you will need JavaScript to redirect visitor to your new url or new file location.
<script type=”text/javascript”>
window.location = “http://www.newsite.com/”
</script>
By setting window.location to a new URL, you will in turn change the current webpage to the one that is specified.
Of course, the page will only redirect if the user has JavaScript enabled on their browser. Otherwise, try using an HTML redirect.