I need to setup a maintenance page for a website I'm running, e.g. for display when I'm performing site maintenance (scheduled downtime) or if something really breaks and I need to put up a holding page.
Is there anything special I need to do to ensure that search engine crawlers don't index it and think that it's my site. Or should I do a 404, add a temporary robots.txt file or something? I basically don't want them to index it as my site, but I also don't want them to think my site is dead and not come back.
Edit: Here's what I did in Apache: ErrorDocument 503 /.server-maintenance.html RewriteEngine On RewriteRule !^.server-maintenance.html /server-maintenance Redirect 503 /server-maintenancestrong text
You can prevent a page or other resource from appearing in Google Search by including a noindex meta tag or header in the HTTP response. When Googlebot next crawls that page and sees the tag or header, Google will drop that page entirely from Google Search results, regardless of whether other sites link to it.
WordPress site owners will do anything to get their websites indexed. However, you might not want search engines to crawl through your website if it's still in development. In a case like this, it's recommended to discourage search engines from indexing your site.
If a publisher is testing a new web design, they can create a subdomain and test the new website design there. Traditionally, the most common way to block Google from indexing a staging site was to create a robots. txt file that keeps Google from crawling the staging site.
You should send a 503 Service Unavailable
HTTP status code, and not a 404
. Use this in conjunction with a Retry-After
header to tell the robots when to come back.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With