Fix WordPress 404 Errors on Password Protected Directories Print

  • htaccess, wordpress, password protected
  • 2

You are reading this article becasue you have applied password protection on the wp-admin directory on wordpress but its showing a 404 error.

The fix is simple, just put the following code into the root .htaccess.

ErrorDocument 401 ./error.html
ErrorDocument 403 ./error.html

Was this answer helpful?

« Back