getting a 404 not found when setting the llms.txt

#1103447
  • Read
    Rank Math free

    I activated the llms.txt in the dashboard, but when I saved it under edit llms.txt and click “your llms.txt file is available at:” it opens a 404 with the below message:

    ~~~
    Not Found
    The requested URL was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    ~~

    how can i fix it? thanks

Viewing 1 replies (of 1 total)
  • Hello,

    I apologize for the issue you are facing with the 404 error when trying to access your llms.txt file. This can happen if there is a conflict with the server configuration or if the file is not being generated correctly.

    Here are a few steps you can take to troubleshoot and potentially fix this issue:

    1. Check for Existing llms.txt File: Ensure that there isn’t an existing llms.txt file in your site’s root directory that might be causing a conflict. You can check this using cPanel or an FTP client.

    2. Regenerate .htaccess File: Sometimes, issues with the .htaccess file can lead to 404 errors. You can regenerate your .htaccess file by going to Rank Math SEO → General Settings → Edit .htaccess. Make sure to save any changes you make.
      Edit htaccess

    3. Clear Cache: If you have any caching plugins or server-level caching enabled, clear the cache to ensure that the latest changes are reflected.
      Learn how to clear cache in WordPress.

    4. Check Server Configuration: If your site is hosted on an Nginx server, ensure that the necessary rewrite rules are in place for handling custom files like llms.txt. You may need to consult your hosting provider for assistance with this.

    5. Test URL: After making these changes, try accessing your llms.txt file again at https://rankmath.com/blog/clear-cache-in-wordpress/ (replaceyourdomain.com` with your actual domain).

    If you continue to experience issues, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern!

    Sources:
    How to Fix the ‘Blocked Due to Other 4xx Issue’ Error » Rank Math
    Common robots.txt Issues & How to Fix Them » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.