Home >> .htaccess >> How To Redirect To Error/404.html When 404 Errors Comes in .htaccess

How To Redirect To Error/404.html When 404 Errors Comes in .htaccess

Step 1. Enable mod_rewrite on your Apache web server.

Step 2. Create .htaccess file in root directory.

Step 3. Redirect To Error/404.html When 404 Errors Comes in .htaccess file

         ErrorDocument 404 http://yourdomain.com/404.html/

Step 4. Restart Apache Server  
        sudo service apache2 restart

Post Your Comment

Next Questions
How To Set The Caching For Javascript/images/css
What Is Meaning Of 301, 302, 400, 401, 403, 404 And 500 Error Codes
Forcefully redirect http to https
Creating a Custom 404 Error Page
How to URL Rewrites
How to make SEO friendly URL
How to Remove php extension from URL
How to Remove HTML extension from URL
How to Remove File Extension

Copyright ©2022 coderraj.com. All Rights Reserved.