--retry=60
- What the docs say
- Sets the
Retry-AfterHTTP header value, although browsers generally ignore it - SEO note
- Use it. Google says to use the retry-after header on a 503 page.
Use php artisan down with --retry, --refresh, --secret, --render and --redirect, see the 503 it returns, and follow Google's guidance for planned downtime.
Run php artisan down to put a Laravel app in maintenance mode. Requests throw an HttpException with status 503. Add --retry=60 to send a Retry-After header, and php artisan up to leave. Skip --redirect, since a redirect is not a 503.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
Symfony\Component\HttpKernel\Exception\HttpException is thrown with a status code of 503.To change the page visitors see, define your own template at resources/views/errors/503.blade.php.
php artisan down
# deploy, migrate, update
php artisan up--retry=60Retry-After HTTP header value, although browsers generally ignore it--refresh=15Refresh header so the browser reloads after that many seconds--secret="token"/token issues a bypass cookie--with-secret--render="errors::503"--redirect=/php artisan down --retry=3600 --render="errors::503" --secret="1630542a-246b-4b66-afa1-dd72a4c43515"The secret above is the docs' example. Generate your own, and per the docs use alpha-numeric characters and optionally dashes, avoiding characters like ? or &.
"If you need to urgently disable the site for 1-2 days, then return an informational error page with a 503 HTTP response status code instead of all content." That is what artisan down does by default.
use the retry-after HTTP header with a best effort date or duration. In Laravel that is --retry.
Google recommends keeping the site online with limited functionality (for example, disabling the cart and showing a banner), and calls disabling the whole site not recommended. Use artisan down only when you must.
Google says to use static HTML and minimize off-page resources. --render helps here because Laravel returns that view at the very beginning of the request cycle, before your application's dependencies have loaded.
don't return a 503 for it, because this blocks all crawling.
the 503 advice is for 1-2 days. For longer, Google says to provide an indexable home page as a placeholder with a 200 status code. Google says already indexed URLs that return 5xx are preserved but eventually dropped, and URLs that persistently return a server error are removed from the index.
php artisan down has to run on each server. Set APP_MAINTENANCE_DRIVER=cache and APP_MAINTENANCE_STORE=database (any store all servers can reach) and you run it on one.--render option.The same pattern for other stacks: Drupal maintenance mode and WordPress maintenance mode. For 5xx background, see server errors 5xx.
With the app down, run curl -I https://example.com/ and confirm a 503 status. If you used --retry, look for the Retry-After header too.
Run php artisan up, then request the home page and a deep URL to confirm 200.
Check the Crawl stats report in Search Console for server errors after long windows.
4 questions people ask next, answered from the sources on this page.
503. Laravel throws an HttpException with a 503 status code when the app is in maintenance mode.
Run php artisan down --retry=60. The value becomes the Retry-After header, though the docs note browsers generally ignore it.
It can be fine for short downtime, but Google does not recommend disabling a site if you can avoid it. Google says a 503 with an informational page suits 1-2 days of downtime, with Retry-After and a robots.txt that still answers. It prefers limiting functionality instead. For a longer closure it says to serve an indexable placeholder home page with a 200.
Yes, with --secret. Visiting the secret URL sets a cookie that lets your browser use the site as if it were not in maintenance mode.
Run the free audit, then approve the fixes. Every change can be undone.