How to create 404 page error on Cloud?


This error page will come into existence when someone tries to access a page that doesn't exist on your website. It is the good practice to create 404 page separately under your hosted account folder so that when user makes modifications and tries to find files or folders inside the hosted path if not found will displays this page.


We allow you to create your own custom 404 error page under your appropriate path of the domain and redirects the page if folders or files which is not related to your site is searched on the url.



Use the below short code on your htaccess file to redirect to the 404 page which you have created:


Before adding this code to your htaccess file you need to create the custom 404 page.


RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^ http://abcd.com/404.php [L]



Advantages of using 404 page:


  • The 404 error page has ┬ácapability of convincing the user to keep on browsing your website and not leave.

  • By including a navigation menu, links to your site as well as a search box, you are providing the user with a solution to the problem, which is what they need to be able to move ahead.