How to Set Custom Error Pages Using Htacess

If you want to design the custom error page for the server side error like 400, 401, 500, 502, and etc…, then keep your close attention in this as I am going to explain how to set custom error pages using Htacess file.

Open your htacess file from root directory of your website and copy paste below code at the end the file and save it. You can change the file name in the below code.

You can also create a folder in the root directory and keep all your errors page inside that folder. In this case, use the below code in htacess

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.


Article Tags: , , , , , ,

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.