Popular Posts

How to create error pages with .htaccess

Creating a custom error pages with .htaccess is very useful. It allows you to show friendly error to visitor if a URL on your web site doesn't work. This avoids the unfriendy errors like 404 and allows you to display friendly error explaining possible solution for visitor.

To create custom error pages, follow below instructions:

ErrorDocument 401 /error/401.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/500.html

The above lines tells Apache Web Server to display the page located at /error/404.html
How to create error pages with .htaccess How to create error pages with .htaccess Reviewed by Snehal Vasava on May 23, 2018 Rating: 5

No comments:

Breaking

Powered by Blogger.