Custom Error Pages

custom error pages banner

Download Plugin
WordPress.org Plugin Page

WordPress offers inbuilt support for custom 404 pages on all themes. But what about custom pages for other common errors like 401 and 403? You end up seeing a bland error page of the Web Server.

With this plugin you can easily create custom 401 and 403 error pages with any theme without writing a single line of code!!! And the best part is that you set it and forget it. Yes, you don’t have to do any changes even if you change themes. The heading and text you want on 401 and 403 error pages are displayed on the currently active theme.

Usage

Install and activate the custom error pages plugin.

From the wp-admin go to Settings > Custom Error Pages, fill in the heading and content boxes, save the changes and preview it.

Apache users edit your .htaccess file and add the following lines.

ErrorDocument 403 /index.php?status=403
ErrorDocument 401 /index.php?status=401

Nginx users edit your nginx.conf file and add the following lines.

error_page    403 = /index.php?status=403
error_page    401 = /index.php?status=401

Try accessing a file or directory which is forbidden like

http://www.example.com/.htaccess

http://www.example.com/wp-includes/

Did you see a custom 403 page in all the glory of your theme?

Screenshots

custom error pages admin options

custom error pages 403 twentythirteen

Custom 403 Error Page on TwentyThirteen Theme

custom error pages 403 customizr

Custom 403 Error Page on Customizr Theme

custom error pages 403 expound

Custom 403 Error Page on Expound Theme

Download Plugin