• Resolved carlcs

    (@carlcs)


    we have w3 total cache setup on our staging and production sites. I noticed on our production site that even if the compatibility tool says we could write into the .htaccess file, which w3 total cache did during initial install, any future settings changes don’t get applied to the .htaccess file. only wp-content/w3tc-config/master.php gets updated. I don’t have an issue in staging with this so what i do right now is i update and test in staging, then copy the .htaccess file changes from staging to production.

    What neccessary settings or modules do i need to get this functioning properly?

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @carlcs

    I am sorry about the issue you are experiencing and I am happy to help.
    First, make sure that your .htaccess file permissions are set to 644 this will ensure that W3 Total Cache can write the rules.
    Can you also please share the example of the settings you changed that are not being updated in the .htaccess file?
    Thank you!

    Thread Starter carlcs

    (@carlcs)

    hi @vmarko i have confirmed that the file permission is set to 644. As for the settings, any setting that would have to be written to the .htaccess file like the browser cache setting “Expires header lifetime:” for media or the “Add CORS header” setting under CDN

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @carlcs

    Thank you for the information.
    The only thing that needs to be done to allow W3 Total Cache to write the rules in .htaccess file is to set the permission properly. And as you pointed out those are already set. There are no other things or settings that you need to change or adjust within the plugin to be able to write.
    That being said you confirmed that you have no issues on your staging site, and I’ve just tested this on three separate instances and the .htaccess file always gets updated.
    You should check the differences between your staging and production website. I am guessing here but potentially there is some other plugin that might be blocking writing the rules. Check if you have any other plugin that maybe writing the rules and see if you have the same issue with it.
    Also, I am sure you did this but double-check the location of the .htaccess file.
    I hope this helps and this being said this is not related to the plugin per se but something with the environment.
    Please let us know if you have any other questions.
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘.htaccess not being updated with new settings even if write enabled’ is closed to new replies.