Open kmb40 opened 3 years ago
This is a dynamic link, not a directory. EDD HS listens to any URL containing edd-helpscout-api
. customer_info
is the action that is then triggered.
Do you experience issues with this?
This has worked for years without issue.
Upon copying the WP site into another directory (as part of a migration), updating the path in the custom app in HelpScout, we receive a "Not Found" message in HelpScout.
Flipping the path back to the original location works.
What is the new and old path?
Are you using any services or firewalls that could block the URL? Cloudflare, Sucuri, etc.
Could there be any other setup, e.g., in your .htaccess
preventing the new route?
Old path - site.com New path - site.com/new_home No security barriers. Tested .htaccess and could not find an issue. Still testing as I suspect to find something there.
Can you open https://site.com/new_home/edd-helpscout-api/customer_info
in your browser? It should return {"html":"Invalid signature"}
.
@kmb40 did you see my reply or have you been able to resolve the problem?
Thanks for following up. Returns a 404 at: https://site.com/new_home/edd-helpscout-api/customer_info
The original "{"html":"Invalid signature"}" returns what you mentioned at https://site.com/edd-helpscout-api/customer_info
Thanks for your feedback. Seems like it works on the original URL. Would that be a problem?
Since it seems the location does not automatically account for sub-folders (we have a staging site in a sub-folder also), what we've done is to use this:
define( 'EDD_HELPSCOUT_API_PATH', '/new_home/edd-helpscout-api/' );
How is this directory created?