Viewing 5 replies - 1 through 5 (of 5 total)
  • The same problem.
    When I copy apache rules and placed in .htaccess I found the error message 403 on post pages but not on the home page.

    There is a solution?

    Plugin Author GatorDog

    (@gatordog)

    You could try removing the .htaccess file from the “gator_cache” directory. Typically, the cache directory will be in the main root, parallel to wp-content. However, when you go to the GatorCache admin, it will copy the file back. So make sure when you try this, you do not log back into the Gator Cache settings before testing. If this is the issue, please let me know. It’s possible that older versions of Apache wouldn’t support this type of directory protection (that the htaccess file in the cache directory provides).

    I have tried, the results remain error 403.
    Probably true, it’s possible that older versions of Apache would not support this type of directory protection.

    Hello,

    Here is the error i found in my server logs :

    Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

    I found a solution here.
    https://www.blog.magepsycho.com/invalid-command-header-perhaps-misspelled-or-defined-by-a-module-not-included-in-the-server-configuration/

    But of course you need to have access to your apache configuration.

    Plugin Author GatorDog

    (@gatordog)

    Thanks for the info, if this is the issue and you can’t enable mod_headers on your server, or get your hosting company to enable, you can change these parts of the htaccess:

    1) Change:

    <filesMatch "\.(html|gz)$">
        Header set Vary "Accept-Encoding, Cookie"
        Header set Cache-Control "max-age=5, must-revalidate"
    </filesMatch>

    To:

    <IfModule mod_headers.c>
    <filesMatch "\.(html|gz)$">
        Header set Vary "Accept-Encoding, Cookie"
        Header set Cache-Control "max-age=5, must-revalidate"
    </filesMatch>
    </IfModule>

    2) Change:

    Header unset Last-Modified

    To:

    <IfModule mod_headers.c>
        Header unset Last-Modified
    </IfModule>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error 403’ is closed to new replies.