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"

Can anyone advise best practice in terms of this redirect?

Thank you.

  • 1
    What is the reason for doing this?
    – MrWhite
    Mar 7 '16 at 14:46
  • We have a store promotion - and the website is temporarily closed. Mar 7 '16 at 15:51

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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.