Streaming live at 10am (PST)

How to redirect from another url to a page on site

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?

1 Like

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

You can redirect a web page via JavaScript using a number of methods. If you want a cross-browser compliant JavaScript redirect script, better to use the following scripts.

window.location.href = "http://anotherdomain.com";

Also, You can use window.location object to load another page in JavaScript.

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.