We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39754
    • 1 Posts
    Hi all,

    A bit of background: I recently became responsible for a student group's website. The website is managed from an online interface ("domain-name".com/manager) with MODX Revolution. I was using this interface to modify the website's ht.access file, but unfortunately I saved the file while it contained a syntax error. As a result, every page on the website now displays a 500 Internal Server Error. What's worse is that the manager interface gives me the same error, meaning I can't fix the syntax error in the ht.access file.

    I didn't build the website, so I don't have local copies of any of its content. I also didn't download MODX until this error happened.

    Sorry for the superfluous details, I don't have a lot of experience with managing websites.

    Please help! [ed. note: vpcomm last edited this post 12 years, 3 months ago.]
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You need to have some kind of access to the site's files, FTP or SFTP or SSH. The MODX Manager is intended for managing the content, not for managing external files like .htaccess
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 3749
        • 24,544 Posts
        I'm pretty sure you mean .htaccess. Editing the ht.access file would have no effect, since it is completely ignored. It's just there as an example that can be renamed to make it work.

        At this point, you only have a few options.

        1. Use fileManager in cPanel to edit the .htaccess file (assuming that you have cPanel access).


        2. Use FTP to download the file to your local machine, edit it, and FTP it back to the site (assuming that you have FTP access to the site).

        3. Ask the hosting service to rename the .htaccess file. It will then be ignored and you should be able to log in and fix it before renaming it.

        BTW, when you're working on an .htaccess file, *especially* on a site where you don't have cPanel of FTP access, it's not a bad idea to create a test site somewhere else and try out your ideas there.












          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting