<html> <head> <script> window.location.replace("https://www.conductor.com/"); </script> </head> </html>
This code would send a visitor to
https://www.conductor.com/ upon page load.
The benefit of using the
window.location.href would. That could cause a visitor to get stuck in back-button loops. Therefore, don't use it when redirecting visitors immediately to another URL.
<script> window.location.href='https://www.conductor.com/'; </script>
- Search engines are slow to pick up on them, because they need to render the page in order to find the redirect.
- There's no guarantee the redirect is picked up correctly, therefore it's unsure if you'll see the same amount of authority being passed on as you'd see with a 301 redirect.