Knowledge Base Article

How to create a universal error page for Joomla?

You can have a single error page for your website rather than individual error pages for each error (403, 404, 500, etc.).

 

When you create the desired universal error page with a text/HTML editor of your choice, you have to upload it into a subdirectory of your public_html called errors. Make sure to name the universal error page error.php.

 

Then you have to open your main .htaccess file and add the following lines in it:

 

# provide a universal error document

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^.*$ /errors/error.php [L]



Rating

Please indicate if this article was helpful for you.

rating :  4.5 from 5
views :  1147
votes :  2

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!