3

We are currently redirecting all website traffic to a static html page using javascript in the header of each page (the site will be like this for 4 days).

I'm concerned about the potential SEO impact.

The static HTML page currently has index 'no follow' and the other pages do still exist. It is just that the javascript when someone reaches those other pages sends them to the landing page via the below method.

Here's the script:

<script type="text/javascript">
   <!--
    window.location = "http://www.mydomain.co.uk/landing-page.html"
   //-->
</script>

Can anyone advise best practice in terms of this redirect?

Thank you.

Vasikos
  • 573
  • 3
  • 13

1 Answers1

2

Make sure the page is issuing a 302 header code. This indicates a temporary redirect and shouldn't adversely impact rankings if it's temporary. An alternative is a 503 maintenance code which does not impact Google ranks if it's temporary.

Keep in mind that Google will legitimately assume the content being searched for can't be found and begin demoting if it can't find it. You should recover once the redirect is lifted. Check your Webmaster to monitor scrapes and codes being received by Google.

L Martin
  • 4,003
  • 11
  • 25
  • Since the "website is temporarily closed" I think my preference would be for a 503 Service Unavailable with a Retry-After HTTP response header (in which you can state "4 days"). See also: http://webmasters.stackexchange.com/questions/55635/website-is-under-maintenance-how-to-restrict-access/55659#55659 – MrWhite Mar 07 '16 at 21:04