Hi, I need help adding a script in webflow what would redirect from www.tmsg.co.za (old site) to page on www.sekta.co.za(new site) website?
You can set this up in the hosting tab of the settings
- Add both domains (sekta.co.za and tmsg.co.za)
- Setup the DNS as instructed for both so they point to Webflow.
- Then click the “Make Default” button next to the domain you want to make primary - i.e. www.sekta.co.za - this will redirect all the traffic from tmsg.co.za to sekta.co.za
window.location.href = "http://anotherdomain.com";
window.location = "http://anotherdomain.com";
A pure HTML alternative is the following tag in your HTML :
<meta http-equiv="refresh" content="0;http://anotherdomain.com">
The 0 is here the amount of seconds the page has to stay open before redirecting.