Article

Custom 404 Pages

Franz Wiebe

This starter template includes a custom 404 Not Found error page, located at /source/404.blade.php. To preview the 404 page, you can visit /404 in your browser.

<!-- source/404.blade.php -->

@extends('_layouts.main') @section('body')
<div class="mt-32 flex flex-col items-center text-gray-700">
    <h1 class="mb-2 text-6xl leading-none font-light">404</h1>

    <h2 class="text-3xl">Page not found.</h2>

    <hr class="mx-auto my-8 block w-full max-w-sm border" />

    <p class="text-xl">
        Need to update this page? See the
        <a title="404 Page Documentation" href="https://jigsaw.tighten.co/docs/custom-404-page/">Jigsaw documentation</a
        >.
    </p>
</div>
@endsection

Depending on where your site is hosted, you may need to configure your server to use the custom 404 page. For more details, visit the Jigsaw documentation about configuring a custom 404 page.