Tell us what you are trying to do?
I currently work on setting up custom error pages on my CloudLinux7 OS server running Apache and as add-on Litespeed webserver. On the webserver level I have managed to set up .htaccess to re-route to my custom error pages. For wordpress I use a custom filter on wp_die_handler.
What do I observe?
Calls for pages that are limited to logged-in users should end up in a 401 error. I get 404. Today I've set up a guest group in Access in order to handle native WP pages. Before these weren't managed by Access and at least I got a 403 on the described situation (which is faulty, too, as it should be 401).
What do I need to know?
Does the Access plugin - generally speaking - route unauthorized users to 404 for whatever reason? If so, is there a toolset filter I can use to change that behaviour?
At the moment, a general insight in how Access triggers or deals with access permission related errors will suffice.
Hint: yes, all custom error pages have been made accessible for guests in that Access group.
What is the link to your site?
hidden link
Kindest regards,
Sven
Hello,
There isn't such kind of built-in feature, Toolset Access plugin can not return 401 error, and there isn't built-in filter hook to change it:
https://toolset.com/documentation/programmer-reference/access-api-filters/
You can add a feature request, our developers will evaluate it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/