We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    If you have cPanel access, you can edit or rename the .htaccess file. If you have FTP access you can replace it or rename it.

    If you don't have any of those, ask the host to either restore the .htaccess file from a backup or (if that's not possible) rename the .htaccess file to old-htaccess for you.

    Once the file has been renamed, you should be able to log into the MODX Manager again. You won't have Friendly URLs until the original .htaccess file has been restored.

    This question has been answered by BobRay. See the first response.

      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
      • 53318
      • 4 Posts
      BobRay
      I'm so sorry, just a second ago deleted the request, coz i found the accsess from hosting panel and fix .htaccess
      Thank you for you answer (:
      Maybe you can tell me about cache mode?
      Google Speed telling me neither of following is not working:


      # CACHE AND Headers _________
      <IfModule mod_headers.c>
      <FilesMatch "\.(com/script/widget/ekLjpD8PMR)$">
      Header set Cache-Control "max-age=2592000"
      </FilesMatch>
      <FilesMatch "\.(html|htm)$">
      Header set Cache-Control "max-age=2592000"
      </FilesMatch>
      <FilesMatch "\.(js|css|txt|less)$">
      Header set Cache-Control "max-age=2592000"
      </FilesMatch>
      <FilesMatch "\.(flv|swf|ico|gif|jpg|jpeg|png|jpe?g)$">
      Header set Cache-Control "max-age=2592000"
      </FilesMatch>
      <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
      Header set Cache-Control "max-age=300"
      </FilesMatch>
      <FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css)$">
      Header set Access-Control-Allow-Origin "*"
      </FilesMatch>
      <FilesMatch "\.(js|css|gif|png|jpe?g|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|oex|xpi|safariextz|vcf)$" >
      Header unset X-UA-Compatible
      </FilesMatch>
      </IfModule>
      <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresDefault "access plus 1 week"
      ExpiresByType image/x-icon "access plus 2592000 seconds"
      ExpiresByType image/jpeg "access plus 2592000 seconds"
      ExpiresByType image/png "access plus 2592000 seconds"
      ExpiresByType image/gif "access plus 2592000 seconds"
      ExpiresByType video/ogg "access plus 1 month"
      ExpiresByType audio/ogg "access plus 1 month"
      ExpiresByType video/mp4 "access plus 1 month"
      ExpiresByType video/webm "access plus 1 month"
      ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
      ExpiresByType text/css "access plus 1 week"
      ExpiresByType text/javascript "access plus 1 week"
      ExpiresByType application/javascript "access plus 1 week"
      ExpiresByType application/x-javascript "access plus 1 week"
      ExpiresByType text/html "access plus 1 week"
      ExpiresByType application/xhtml+xml "access plus 1 week"
      ExpiresByType text/xml "access plus 1 week"
      ExpiresByType application/xml "access plus 1 week"
      ExpiresByType application/json "access plus 1 week"
      ExpiresByType application/rss+xml "access plus 1 week"
      ExpiresByType application/atom+xml "access plus 1 week"
      ExpiresByType text/x-component "access plus 1 week"
      ExpiresByType application/x-font-ttf "access plus 1 month"
      ExpiresByType font/opentype "access plus 1 month"
      ExpiresByType application/x-font-woff "access plus 1 month"
      ExpiresByType image/svg+xml "access plus 1 month"
      ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
      </IfModule>
      • discuss.answer
        • 3749
        • 24,544 Posts
        Sorry, I'm afraid I don't know much about cache control.
          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