Kom meer te weten!

What is Meta Refresh?

Meta refresh is an HTML attribute that instructs a browser to refresh after a set period. It may also be set to redirect the visitor to another webpage or site during the refresh. 

You can set a meta refresh by adding the below meta tag to the webpage’s head element. Here 60 indicates that the webpage will refresh after 60 seconds. You can change it to any duration of your choice.

<meta http-equiv="refresh" content="60">

If you want to redirect the visitor to a new page during the refresh, you can add the below code to the web page’s head element.

Here, you will replace https://yourdomain.com/new-page/ with the URL of the site or webpage you want to redirect your visitor to. 

<meta http-equiv="refresh" content="60; URL='https://www.yourdomain.com/new-page/'"> 

Because of its ability to redirect the visitor to another page, some site owners use the meta refresh to create their redirections. This could lead to poor user experience and may cause indexing issues on Google search.

Hence, it is a good practice to create a server-side 301 redirect instead of using meta refresh for redirects.

🇳🇱 Nederlands