Free Digital Tools for Freelancer and Youtubers

First Create a .htaccess file on the server. Edit this file if you already have it on the server.

How to redirect 404 error page to homepage using htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ /index.html [L]

How to Create a Custom 404 Error Page

Create a 404 Page and add this code to your htaccess file.

ErrorDocument 404 /404.php

For more information you alose watch this full video.

Leave a Reply

Your email address will not be published. Required fields are marked *