• Resolved LaMpiR

    (@lampir)


    Hi.

    I am getting an error where the plugin is not able to update my .htaccess even though I gave persmission 777 to the file. When I update it myself, I get a download.gz file to download and cannot open the website (if not logged in).

    Any suggestions?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there, Sebastian here.

    Can you share some details on what you are trying to achieve here? Why do you need a plugin to update your .htaccess file?
    The more information you share, the better we can understand the problem.
    Thanks.

    Thread Starter LaMpiR

    (@lampir)

    It is my understanding that the .htaccess file is part of the caching system and certain rules have to written there. When they are not written there, it can happen that it doesnt work.

    Since the plugin cannot write to the file due to some reason, I get a warning to do it manually.

    Plugin Support Ajay Kumar Jain (a11n)

    (@akumarjain)

    Hi @lampir, setting permissions to 777 makes your .htaccess file writable by everyone, which can be a security risk. It’s better to set permissions to 644, which should still be writable by your web server, provided that the file ownership is correct.

    Rewrite rules are added to the .htaccess file to optimize your site’s speed. If for some reason, the plugin can’t auto-update this file, you need to add those rules manually.

    Regarding the issue with the gzipped version of your site being downloaded instead of displayed, this suggests that your web server is not configured to serve gzipped content correctly. You might need to adjust this in your .htaccess file in consultation with your hosting provider.

    I hope this information helps. Please let us know if you have any questions or if we can help with anything else.

    @lampir unfortunately, some sites have problems using mod_rewrite to serve cached files, which you’ve run into here.

    If you’re getting a .gz file when you add the rules manually, you possibly have compression enabled as a web server module, or in PHP, and the plugin isn’t detecting that correctly. You could disable compression on the Advanced settings page of the plugin and see if that helps.

    If that doesn’t work, I think you should just use simple caching. It’s more flexible and easier to configure as it doesn’t require any further adjustments to system files like the .htaccess file. In most cases it’s just as fast as serving pages through the .htaccess/mod_rewrite method these days because PHP itself is so fast.

    Plugin Support Joseph B. (a11n)

    (@tamirat22)

    Hello @lampir,

    It’s been one week since this topic was last updated. I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.