pull down to refresh

I am trying to set up NIP05 to my domain TokyoCafe21.com
I have generated the Nostr account, turned the npub to hex, generated the json file, set up my host with SFTP, uploaded the json to a .well-known file I created and added the
<IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule>
to htaccess.
My site is a Wordpress online shopping site I set up originally before I tried to do NIP05. It's not working to verify my account so I assume I am screwing up where to put the json file or else my host is not supporting this or whatever.
I will pay 10,000 sats to someone who can help me get to the bottom of why this is not working.
10,000 sats paid
dash's bounties
Does your wordpress site have pretty urls? The redirects that's using may be catching the request to .well-known/nostr.json. Tried it with one of my wordpress sites and I get a 404 as well (because the file doesn't exist) but it returns much faster than yours does. Perhaps you can share any mod rewrite rules you have in place.
reply
Thanks for the reply. I think this is what you mean? This is in the original .htaccess file on my server. I did not write these--I am just using the Wordpress template I got with the hosting provider along with Woocommerce.

BEGIN WordPress

The directives (lines) between "BEGIN WordPress" and "END WordPress" are

dynamically generated, and should only be modified via WordPress filters.

Any changes to the directives between these markers will be overwritten.

<IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
reply
Looking quickly at it I think you need to put in an exception for the well-known file location. This answer should help:
reply
If you see this in time you might edit it to put four spaces before each line of code or put the whole code block between three backticks (`). It'll then look like this in preview.
this is code
reply
Thanks for the bounty award, have a nice day!
reply
10 sats \ 1 reply \ @mo 28 May 2023
This may help you
reply
Thanks. Took a look but I have already followed the steps in there. But a .htaccess and a json file onto the webserver using stfp but no joy. I could really do with a way to test to see why it isn't working.
reply
This guide helped me (step 12) to make it work but I used Damus client maybe it can help you too.
reply
My host got back to me. I needed to change my php version in order for Apache to respect my htacess file. All working (for now. I changed my php version which did fix the NIP05 but then broke the site. I then reverted to the original php settings which fixed my site and for some reason did not break the NIP05). I will pay the bounty out to OriginalSize who I feel gave the most help. Thank you.
reply
I think that CORS isn't working. I tried here https://cors-test.codehappy.dev/ and it said it's not working. I tried installing this wordpress plugin but no joy: https://github.com/easydns/wp-nostr-nip05/tree/2c0671664549e665cce6f4a469ccbe06e9bd10c4 I am going to email my provider asking about CORS support I think.
reply
Translate to English: I accessed your address and it responds with 404 page access not existing. Check the rewrite in your webserver settings (nginx/apache) I don't know which one you are using. But everything indicates that this is the problem.