Losing clicks to competitors? Find out exactly why, and what to fix first.

Show me why
Skip to content

Technical SEO

Meta Refresh and JavaScript Redirects: Are They Bad for SEO?

Add saadrazaseo.com as a preferred source on Google

Takes about a minute. You hear back from me personally.

Meta refresh and JavaScript redirects can work, but server-side redirects such as a 301 are faster, clearer and more reliable. Search engines can follow the other types, though they add delay and more room for error. Use them only when you cannot change server settings.

Server-side redirects

A server-side redirect happens before the page loads, using a status code such as 301. Browsers and crawlers understand it immediately, which is why it is the preferred method for moving pages.

Meta refresh redirects

A meta refresh is an HTML tag in the page that sends visitors on after a set delay. Search engines can follow it, but the page must load first, and visitors may see a flash of the old page. It is a fallback, not a first choice.

Not sure if this is hurting your site?

Get the fixes that matter most, in priority order.

Find my blockers

JavaScript redirects

A script changes the address after the page loads. Google can process these when it renders the page, but it is slower and depends on the script running correctly. It can fail if scripts are blocked or broken.

When each is acceptable

  • Server 301: any permanent move.
  • Meta refresh: only where server access is impossible, such as some hosted platforms.
  • JavaScript: for app behaviour, not for moving indexed pages.

How to check what you have

View the page source for refresh tags and test the address in the redirect and status code checker. It will show server-side hops, so a page that looks redirected but shows a 200 is probably using one of the other methods. The HTTP header checker shows the raw response.

Fix it

Replace the tag or script with a server rule, which you can produce using the htaccess redirect generator. Keep it to a single hop, as explained in redirect chains and loops.

Frequently asked questions

Is a zero-second meta refresh the same as a 301?

Not exactly. It may be followed, but it does not behave as cleanly as a real status code.

Can I use JavaScript for A/B testing?

Yes, but keep the original address indexable and the final result clear.

Next steps

If your site relies on script redirects, contact me here for a technical review.

More in this series (redirect questions): start with Free Redirect and Status Code Checker, then explore:

Rather have an expert do this for you?

Tell me about your website and goals, and I will reply with a free first review.

Your details are only used to reply to your request. No spam.

Grow my trafficCall