Title: Protected sites don&#039;t return 404 errors
Last modified: August 21, 2016

---

# Protected sites don't return 404 errors

 *  Resolved [JpMaxMan](https://wordpress.org/support/users/jpmaxman/)
 * (@jpmaxman)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/protected-sites-dont-return-404-errors/)
 * Greetings! I am having a problem where a protected site will not seem to return
   a 404. As an example:
 * [http://example.com/protectedsubsite/missing.jpg](http://example.com/protectedsubsite/missing.jpg)
 * This will always log the person out and put them on a login screen that doesn’t
   work. It doesn’t return a proper 404. Any help is appreciated.
 * [https://wordpress.org/plugins/more-privacy-options/](https://wordpress.org/plugins/more-privacy-options/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Sader](https://wordpress.org/support/users/dsader/)
 * (@dsader)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/protected-sites-dont-return-404-errors/#post-4938949)
 * (the url to the missing.jpg above is[ missing something](https://www.google.com/?gfe_rd=cr&q=recursion))
 * My plugin by itself should not be generating 404 errors. I can’t get it to do
   it. With what you have described so far, I can’t repeat the errors you are getting.
 * Anyway, the sites you are attempting to access either exist or do not.
 * If site exists, then if the user is not logged in it will redirect them to wherever
   WordPress sends visitors with its [auth_redirect function](http://codex.wordpress.org/Function_Reference/auth_redirect)–
   i.e. the login page by default – and hopefully send them back to the page they
   were attempting to visit.
 * If the site they are attempting to visit does not exist, WordPress may be set
   up redirecting visitors to a [noblogredirect](http://wordpress.org/tags/noblogredirect)
   page on the main domain.
 * My plugin shouldn’t be causing anyone that is logged in to be logged out, that
   sounds like something is broken indeed. Do you have other plugins running, or
   something else with your install different from the “vanilla” “out of the box”
   multisite install?

Viewing 1 replies (of 1 total)

The topic ‘Protected sites don't return 404 errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/more-privacy-options.svg)
 * [More Privacy Options](https://wordpress.org/plugins/more-privacy-options/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/more-privacy-options/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/more-privacy-options/)
 * [Active Topics](https://wordpress.org/support/plugin/more-privacy-options/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/more-privacy-options/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/more-privacy-options/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Sader](https://wordpress.org/support/users/dsader/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/protected-sites-dont-return-404-errors/#post-4938949)
 * Status: resolved