• Resolved futureyoon

    (@futureyoon)


    hi

    I am getting an error with 200 OK for page cache URL rewriting is not working
    https://snipboard.io/5aDe32.jpg

    below is my .htaccess from page_enhanced folder. I compared with w3tc_install, it is identical.

    # BEGIN W3TC Page Cache cache
    Options -MultiViews
    <Files ~ “\.(html|html_gzip|html_br|xml|xml_gzip|xml_br)$”>
    Order Allow,Deny
    Allow from all
    </Files>
    AddDefaultCharset UTF-8
    FileETag MTime Size
    <IfModule mod_mime.c>
    AddType text/html .html_br
    AddEncoding br .html_br
    AddType text/xml .xml_br
    AddEncoding br .xml_br
    </IfModule>
    <IfModule mod_setenvif.c>
    SetEnvIfNoCase Request_URI \.html_br$ no-brotli
    SetEnvIfNoCase Request_URI \.xml_br$ no-brotli
    </IfModule>
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/html M3600
    </IfModule>
    <IfModule mod_headers.c>
    Header set X-Pingback “https://dev8ottibu.ml/xmlrpc.php&#8221;
    Header set Vary “Accept-Encoding, Cookie”
    Header set Pragma “public”
    Header append Cache-Control “public”
    </IfModule>
    # END W3TC Page Cache cache

    Any idea why i am getting this error and how to fix this?

    Thank you

    • This topic was modified 2 years, 7 months ago by futureyoon.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @futureyoon

    Thank you for your question and I am happy to assist you with this.
    In some cases, this issue may appear due to the wrong sequence of the rules that appear in “.htaccess“, make sure WordPress’s rule appears AFTER the W3TC rules.
    YOu should also enable debug for Page Cache and check the source of the website, or share the website URL (That would be great)
    If you see that the Page Cache is created and you can confirm this by checking the wp-content/cache/disk_enhanced/yourwebsite.com/ folder and see if the files are created for the visited pages, you can just ignore the error. In some cases, the plugin cannot detect if the rewrite rules work because of server restrictions or something like that. The server cannot get a correct response (200 OK) when visiting a certain URL. That doesn’t mean they don’t work, but they have to verify it yourself.

    I hope this helps!

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘page cache URL rewriting is not working’ is closed to new replies.