Mobile app version of vmapp.org
Login or Join
Cugini213

: Website maintenance - SEO - 503 I've to do some big works to my website, so I've to put it offline for some hours, but I don't want to lose my rank in google. I've read this tutorial:

@Cugini213

Posted in: #HttpCode503 #SiteMaintenance

I've to do some big works to my website, so I've to put it offline for some hours, but I don't want to lose my rank in google. I've read this tutorial: www.branded3.com/blogs/handle-googlebot-during-site-downtime/ This is the correct procedure, right?

I've also another question. Where should I put this code?

<?php
header("HTTP/1.1 503 Service Temporarily Unavailable");
header("Status: 503 Service Temporarily Unavailable");
header("Retry-After: 3600");
php?>


In the index.php, ora in a new page named errorpage.php in the root? Google will find this automatically?

Thanks!

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cugini213

1 Comments

Sorted by latest first Latest Oldest Best

 

@Twilah146

It depends on your application. If your application has a front controller like WordPress, then you can use index.php to make the complete site offline, since all requests go via index.php.

If your application consists of individual PHP files, then you have to put the code to each file.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme