API Security and Rewrite Rule Conflict Issue
-
I’m encountering an issue with API security and URL rewriting in a WordPress environment. Specifically, I’ve successfully rewritten the
wp-json
endpoint to a custom path (e.g.,/call
), and it functions correctly for the base URL. For instance, accessing/call
returns a 200 status code, indicating proper functionality.However, the problem arises when attempting to access nested endpoints, such as
/call/v2/wp
. In this case, the server returns a 404 error. This suggests a conflict with plugin routes that still rely on the originalwp-json
structure, potentially due to incomplete or incorrect rewrite rules.Could you provide guidance on resolving this conflict to ensure both custom and plugin API endpoints are accessible without interference? Your assistance would be greatly appreciated. Thank you!
- You must be logged in to reply to this topic.