January 17, 2025

    How to add LLMs.txt file to your MODX site

    Learn how to add the LLMs.txt file to your MODX site to improve your site's discoverability on AI search engines.

    How to add LLMs.txt file to your MODX site

    Prerequisites

    • MODX Manager access with administrator privileges
    • Write permissions on the root directory

    Installation Steps

    Access MODX Manager

    • Log in to your MODX Manager panel
    • Use your administrator credentials

    Create New Plugin

    • Navigate to: Elements > Plugins
    • Click "New Plugin"

    Configure Plugin

    • Plugin Name: "LLMs.txt Generator"
    • Copy and paste the provided code into the code field

    Set Plugin Properties

    • Go to "System Events" tab
    • Check the box for "OnWebPageComplete"
    • Save the plugin

    Testing

    • Visit any page on your website
    • Check your site's root directory
    • Look for a new file named "llms.txt"
    • Open the file to verify the content

    AEOmatic

    Troubleshooting

    If the file is not being created:

    1. Check root directory permissions (should be 755 or 775)
    2. Clear MODX cache (Manager > Site > Clear Cache)
    3. Verify that the plugin is enabled

    Support

    If you need assistance, please contact our support team at hey@aeomatic.com

    Notes

    • The file will be automatically updated whenever a page is loaded
    • The site name and description are pulled from your homepage (ID 1)
    • Make sure your homepage has the correct site_name and description fields filled out
    Written by
    Pedro Ladeira
    Pedro Ladeira@pedrooladeira
    AEOmatic
    AEO is the new SEOMake your website discoverable for AI tools like ChatGPT, Gemini, and others.
    Download now!