Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

404.php only works if I’m logged in. Everybody else redirects to wp-login.php – why?

The solution was straightforward, though it took me forever to find it.

The website has a “Members” plugin (by Justin Tadlock) and the option “Redirect all logged-out users to the login page before allowing them to view the site.” was checked. So I just unchecked that box, problem solved.

Related Posts:

  1. Bad pages redirection
  2. Check if wp-login is current page
  3. Private pages that work when you are not logged into WP admin
  4. Associate Page with User
  5. How to redirect login and register pages
  6. List all private pages user has access rights to read
  7. Can’t locate a hidden private page
  8. How to update the counter of private pages in the dashboard?
  9. Could be a namespace conflict (?) with login form and register form on the same page
  10. How to control who can view certain pages in BuddyPress? [closed]
  11. Edit page shown after login in WordPress?
  12. logout redirect only from admin page
  13. get_permalink not fetching correct pages
  14. Custom page only editable by one user
  15. How to hide a page in wordpress made for menu
  16. WordPress redirects to login page when I enter url.com/index.php
  17. Make wordpress pages accessible for Woocommerce logged in users only
  18. Post id(login page) not found
  19. How can a user login on a wordpress page?
  20. Add infinite scroll to content splitted post
  21. How to get current page ID outside the loop?
  22. Contact Form on WordPress Sites?
  23. Page returns 404 with POST variables, but not without
  24. Custom templates not showing up in template dropdown
  25. Get page id by template
  26. Using pre_get_posts on true pages and static front pages
  27. Get the content of a specific page (by ID)
  28. How to get page title with the page ID?
  29. Show more than 20 items in pages or posts edit dashboard
  30. Allowing user to edit only certain pages
  31. How to display last 3 posts (recent posts) in a static page?
  32. How to give paged links custom title?
  33. How to set post slug when using wp_insert_post();?
  34. How can I keep the content of my pages version controlled?
  35. How to load javascript on custom page template?
  36. How to configure WordPress to handle 75,000 pages?
  37. How to update page status from publish to draft and draft to publish
  38. Check if is on child-page of a particular page
  39. Change page template programmatically ?
  40. Conditional tag to check if ‘page.php’ is being used?
  41. Customizing the URLs of WordPress Login and Sign-up Pages?
  42. How to disable posts and use pages only
  43. featured image as background image on pages
  44. Check IF is a “single product page” and Check the “role” for a Redirect
  45. A check for if is parent page, if has children, if has grandchildren
  46. How to load JS and CSS only on specific Pages using is_page()?
  47. How do I require authorization / login to view a specific set of posts / pages?
  48. Listing pages which uses specific template [duplicate]
  49. Proper way to get page content
  50. Access the same page from multiple urls (wildcard)
  51. Create a page without adding a page in the Database
  52. Is there a way to change the default page template selection?
  53. Can I have two child pages of different parents with the same name?
  54. What methods to use to create small, editable pieces of text for static pages?
  55. Show Default Editor on Blog Page ( Administration Panel )
  56. Hide page visual editor if certain template is selected?
  57. What is the difference between $paged and $page?
  58. multi page password protection
  59. Create a “Dummy” parent page for a hierarchy in page listing?
  60. How do I convert a page’s title to lower case?
  61. Get top level page parent title
  62. How to add a specific widget to only 1 page?
  63. Restrict admin access to certain pages for certain users
  64. page title, parent tilte and grand parent title
  65. How to add jQuery script to an individual page?
  66. WordPress page edit does not save selected template
  67. Add a Page without header and menus?
  68. What is an alternative to get_page_by_title()?
  69. Password protect page with multiple passwords
  70. Create pages automatically if they don’t exist
  71. Find empty pages or pages which have less than x characters
  72. Allow only new sub-pages to be created
  73. Set page template automatically based on parent
  74. how to display the wordpress login and register forms on a page?
  75. Editing Complex Pages in Visual Mode
  76. Link section within page with slash (/) and not hash (#) without reloading the page
  77. Creating a template using a specific slug name, for a page with a parent page
  78. Can I display submenus in groups, using wp_list_pages?
  79. Is there a default template file for child pages / subpages?
  80. Get wp_get_attachment_url outside of loop
  81. Order by menu_order and title?
  82. Require title for pages
  83. WP Page and Subdirectory with same name
  84. Replace Dashes Before Title in Page List
  85. Add a new page to wordpress programmatically
  86. Get Permalink for the top level parent of child pages
  87. Proper method to restrict non logged users into certain pages
  88. How to redirect on particular page in wordpress? [closed]
  89. Get page id by title?
  90. What is the use of $page_title and how to use it?
  91. How to embed page content in a blog post
  92. How can I create a separate blog that is private?
  93. Can I display the widget admin in the page admin?
  94. How to add or remove metabox each page separately?
  95. Some pages are missing from the Parent Page select in the Editor
  96. WordPress parent select need to be removed
  97. Manual excerpts for pages not working on Search
  98. How do I check if a post is private?
  99. Prevent WordPress from adding linebreaks to javascript embedded in a page
  100. How to get the specific Page’s current ID and use it in a get_page function?
Categories pages Tags login, pages, private
In two-category searches, where does WordPress save the title of the 2nd category?
User can manage one page accessible by everyone?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress