Issues with .well-known on Hostinger/Dreamhost
-
I recently moved from another host to Hostinger and started having issues with the ActivityPub plugin. I viewed support threads here and on github but none of the solutions I found worked. I tried editing the .htaccess file and using a redirection plugin, but it appears that Hostinger doesn’t allow redirects for the .well-known path.
My solution: I run my site’s DNS through Cloudflare, so I used their redirect options (https://developers.cloudflare.com/rules/url-forwarding/single-redirects/create-dashboard/) to create redirects at the DNS layer rather than relying on the server. I searched the database for .well-known and came up with three:
/.well-known/nodeinfo -> /wp-json/activitypub/1.0/nodeinfo
/.well-known/x-nodeinfo2 -> /wp-json/activitypub/1.0/nodeinfo2
/.well-known/webfinger -> /wp-json/activitypub/1.0/webfingerIn the Cloudflare options I used the options URI CONTAINS then the /.well-known path for the incoming request and then used the STATIC option for the redirection URL. I checked the box “Preserve query string” as well.
This resolved my issues. I’m posting this for two reasons. First, to help anyone else having this same issues with Hostinger, Dreamhost, or any other hosts that don’t allow modification of the .well-known folder.
Second, to ask if there are any other /.well-known redirects I should have in place.
Thanks
- You must be logged in to reply to this topic.