This code would send a visitor to
https://www.contentkingapp.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.
- 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.