Skip to main content

Overrule .htaccess regeneration

Comments

8 comments

  • cPanelMichael
    Hello :) You can manually edit the .htaccess file via the "File Manager" option in cPanel. Or, the "Optimize Website" feature is available in cPanel if you prefer to avoid manual modifications to the .htaccess files: Optimize Website - Documentation - cPanel Documentation Thank you.
    0
  • Remus76
    I cannot use this option. The hosting admin configured the panel in such a way, the compress option is missing. And about .htaccess, I suppose that something is written in httpd.conf and all I can have is just wordpress rewrite rules. It is regenerated instantly after every change. Other than that, plugins tell me that gzip is available on the server. It's just the htaccess rules that's missing.
    0
  • Remus76
    I just found on your link: Your system administrator must enable mod_deflate for the Optimize Website interface to appear in cPanel. I must find a way to enable it... thanks! I could still use some .htaccess rules, so if there is anyone who knows how disable regeneration, it would be cool, thx.
    0
  • cPanelMichael
    I must find a way to enable it... thanks!

    You can install Mod_Deflate via EasyApache, assuming you have root access to the server: How to Access cPanel & WHM Services - cPanel Knowledge Base - cPanel Documentation Thank you.
    0
  • Remus76
    Just recently found out that only on my domain it was not possible to save another .htaccess, due to a malware that infected all the sites from that account.
    0
  • cPanelMichael
    Just recently found out that only on my domain it was not possible to save another .htaccess, due to a malware that infected all the sites from that account.

    Were you able to determine the cause of the issue and resume the utilization of the .htaccess file? Thank you.
    0
  • Remus76
    I solved the problem. The owner of the domains never cared for security and upgrades, therefore the entire domain was full of malware: base64_decode, eval() and so on. Upgrading php version and deep scan using Wordfence solved all these. Regeneration of htacces was just the tip of the iceberg :) Thanks for help!
    0
  • cPanelMichael
    I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.