• Resolved rpksc93019

    (@rpksc93019)


    Sometimes, when I enter the domain into the address bar, it redirects me to the domain name homepage with /wp-content/cache/all/index.html. I don’t want this to show up, and I’ve looked up this error on Google, and have used this suggested fix in my .htaccess file:

    # BEGIN /WP-CONTENT/CACHE/ALL/INDEX.HTML FIX
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache)
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    # END /WP-CONTENT/CACHE/ALL/INDEX.HTML FIX

    https://www.wpfastestcache.com/tutorial/redirection-to-wp-contentcacheallindex-html-problem/

    However, /wp-content/cache/all/index.html still appears sometimes. How do I stop my webpage from redirecting here?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Emre Vona

    (@emrevona)

    the browser caching may cause this issue. can you try via https://www.browserling.com/ please?

    Thread Starter rpksc93019

    (@rpksc93019)

    I have tried it that llink, but the issue is that the redirect seems to occur randomly. I’ve tried re-creating issue before and after clearing WordPress cache, in regular or private windows. However, every time I think I might’ve fixed it, it comes back. I’m thinking it’s from this line in .htaccess:

    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
    RewriteCond /home/xxx/public_html/wp-content/cache/all/$1/index.html -f
    RewriteRule ^(.*) “/wp-content/cache/all/$1/index.html” [L]

    I want cached html files, but I don’t want the rename. Would simply adding a hash sign in front of RewriteRule fix the redirection issue?

    Plugin Author Emre Vona

    (@emrevona)

    Please contact me via email: https://www.wpfastestcache.com/contact-us/

    Thread Starter rpksc93019

    (@rpksc93019)

    I emailed you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘/wp-content/cache/all/index.html’ is closed to new replies.