Create custom 401 and 403 error pages with any WordPress theme without writing a single line of code, set it up and forget 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
Did you see a custom 403 page in all the glory of your theme?
Requires: 3.3.0 or higher
Compatible up to: 4.6.1
Last Updated: 2 months ago
Active Installs: 1,000+
Got something to say? Need help?