I'm using a javascript file to redirect one page to another. I'm using the following in my 1st page: <script type="text/javascript" src="/redirect.js"></script> And I am using the following in my .js file: window.location.replace("h*tp://wwww.example.com/example/example.htm").
However when the page redirects it goes to the correct page but with 4 w's ie. wwww.example.com.... and therefore shows up as a page error. Any ideas why?