A custom 404 page turns a dead end into a helpful experience when visitors reach a URL that does not exist. Instead of a blank browser error, you can show your branding, a friendly message, and links back to your site. This guide explains how to set one up in DirectAdmin.
What a 404 page is #
A 404 error means the requested page was not found. By default the server shows a plain message, but you can replace it with your own page that keeps visitors engaged and pointed toward working content.
Option 1: Use the Custom Error Pages tool #
- Inicia sesión en DirectAdmin.
- Ir a Account Manager > Custom Error Pages.
- Select the 404 error.
- Enter or edit the HTML for your custom page.
- Guardar.
Option 2: Use .htaccess #
Alternatively, create your error page as an HTML file (for example, 404.html) in your public_html folder, then add a line to your .htaccess file pointing to it, such as ErrorDocument 404 /404.html.
What to include on a good 404 page #
- A clear message that the page was not found.
- Un enlace a tu página de inicio.
- Un cuadro de búsqueda o enlaces a páginas populares.
- Tu imagen de marca, para que siga pareciendo tu página web.
Solución de problemas #
- Custom page not showing: confirm the file path in .htaccess is correct.
- WordPress sites: the theme usually controls the 404 page, so edit it there instead.
¿Necesita ayuda? #
Si no se muestra tu página de error personalizada, nuestro equipo de atención al cliente puede ayudarte a través del chat en directo.