- Including the redirect target in the XML sitemap.
- Update internal links to point to the redirect target.
- Update any to point to the redirect target.
The recommended function to redirect is
<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>