Make a custom 404 page for your site
Type your site's address. Get a ready 404.html with links back into your site, and the server rule that shows it.
- Free, no sign-up
- Nothing uploaded
- 404.html + server rule
No site handy? Try one:
How it works
- Type your site's address. The page reads your site's name from it and starts with a Home link. Change the headline, the message and the links; the preview changes as you type.
- Pick a look. Light, dark or your own colour as the background, with a big 404, a compass, a broken link or no picture. The check warns when your colour is hard to read.
- Download 404.html. One file with its style inside: no images, fonts or scripts to load, so it shows even when other files are missing.
- Add the server rule. Choose where your site runs and copy the rule. It shows the page for every missing address and keeps the 404 status, so search engines know the address is gone.
- Check it. Open a made-up address on your site, such as /this-page-does-not-exist. You should see your page, and your browser's network panel should show 404.
Questions
- Why does my 404 page need a server rule?
- The file alone is just another page. The rule tells your server to show it for every address that does not exist, and to send it with status 404. A not-found page sent with status 200 is a soft 404: search engines may keep the broken address in their index.
- Why do the links start with a slash?
- The same 404 page is shown at any address, such as /shop/old/item. A link written as menu would then point to /shop/old/menu. A link that starts with / always points to the same page, so the generator rewrites relative links for you.
- Is anything I type uploaded?
- No. The page and the server rule are made inside your browser tab. Only the optional AI step sends your site's address, its pages and the text you paste, and only when you press its button.
- Should a 404 page redirect to the home page?
- No. Redirecting every missing address to the home page hides broken links from you and from search engines, and confuses visitors who expected something else. Show a 404 page with a clear way back instead.
- How does the search box work without a script?
- It is a plain form. "Search my site with Google" sends the words to Google limited to your domain. "Use my site's own search" sends them to your search page, for example /search?q= or WordPress's /?s=.
- Can I use it with WordPress, Next.js or another framework?
- Yes, copy the HTML into the framework's own not-found template: 404.php in a WordPress theme, app/not-found or pages/404 in Next.js. The rule above is for static hosting and plain servers.