Hello,
We apologize for the issue you are facing with your llms.txt
file returning a 404 error. To resolve this, you will need to add specific Nginx rewrite rules to ensure that the llms.txt
file is correctly served. Here are the Nginx rules you can add to your configuration:
# START Nginx Rewrites for Rank Math llms.txt File
rewrite ^/llms.txt$ /index.php?llms=1 last;
# END Nginx Rewrites for Rank Math llms.txt File
After adding these rules, make sure to test the URL again to see if it resolves correctly. If you continue to experience issues, please reply to your ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for raising this concern!
Sources:
Common robots.txt Issues & How to Fix Them » Rank Math
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
even after adding the above given code, page is not generation llms.txt file.
https://newpathdigital.com/llms.txt
Hello,
Your /llms.txt is redirecting to ?llms=1
. Please disregard the code from our bot above.
Please ensure that your Rank Math plugin is already updated to the latest version:
https://rankmath.com/changelog/free/
In this case, please check your Nginx config file and ensure there are no directives blocking the llms.txt or serving .txt files if they are missing on your site, since the llms.txt we generate is dynamic.
If you need assistance, you can get in touch with your web host to check these for you.
Looking forward to helping you.