• Resolved oferlaor

    (@oferlaor)


    we recently moved to a new server (OS is now Ububntu instead of Centos). The home page occasionally started glitching with “too many redirects”. This happens every once in a while, for anonymous users only (signed on users are excluded from cache).

    When I flush cache, things are back to normal, until the issue starts again.

    What can I check or reset to try and prevent this from occurring?

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

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

    (@vmarko)

    Hello @oferlaor

    Thank you for reaching out and I am happy to help!
    The reason why clearing the cache helps is because those redirects may be cached. However, this is not specificaly related to the W3 Total Cache.
    SInce you moved to another server, the redirect rules may be the cause of this, and also if you have a CDN in place.

    You may have some redirect rules that are contradictory and creating a loop in this case. I would suggest reaching out to yoru hosting provider to check this and make sure that any CDN you have is configured proprly after you moved to another server.

    Thanks!

    Thread Starter oferlaor

    (@oferlaor)

    We are using Cloudflare, but beyond that, nothing but W3Totalcache.

    We are not aware of any other platform or OS related issues, particularly since this is just an OS change, all other platforms and services are the same…

    Thread Starter oferlaor

    (@oferlaor)

    The issue appears to be affecting just the home page (htmag.co.il/) any thing I can do to identify what caused that redirect to be cached?

    Thread Starter oferlaor

    (@oferlaor)

    I saw another issue related to this, with an incorrect redirect of another page. I tried just to flush Cloudflare and it looks like it was the culprit. Still waiting for this to reproduce so I can verify that the issue is there

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @oferlaor

    Thank you for your feedback.

    Please let me know what you find, and also, can you please sahre which redirects you have in place and for which URL?

    Thanks!

    Thread Starter oferlaor

    (@oferlaor)

    there are lots of redirects (both in htaccess and in article posts), but none are related to the home directory.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @oferlaor

    My best guess is that some .htaccess rules for redirects needs to be revisited.
    Do you have any other URL you are serving the website from like www and no www?

    Thanks!

    Thread Starter oferlaor

    (@oferlaor)

    there are a few, they all redirect to the no www

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @oferlaor

    Thank you for your feedback.

    What you can try is to in the Performance>Page Cache>Alias box I put the live domain and the www version of the live domain (and click the checkbox)

    Save all settings and purge the cache

    Let me know if this helps!

    Thanks!

    Thread Starter oferlaor

    (@oferlaor)

    will try, thanks!

    Thread Starter oferlaor

    (@oferlaor)

    I had this happen again today with anonymous users on the home page. This time, I diagnosed it a bit more closely. I first removed the cloudflare cache and saw no change.

    I emptied just the page cache on W3TC and it worked. I now disabled it.

    Note that this started happening as I switched servers, the server is ubuntu now (pretty common) and I’m using php 8.2 now.

    I also disabled browser cache for quite a few pages, particularly forum pages, as I saw redirect loops being cached there as well (these are under a special WP page for forums).

    I, of course, tried the solution to include all the domains in the aliases list. I disabled the cache preload priming. The cache was using memcached.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @oferlaor

    Sorry for the late reply.

    Can you pease disable the W3TC so we can determine if the issue is related to the W3TC?

    Thanks!

    Thread Starter oferlaor

    (@oferlaor)

    Few things:
    1. the redirect loop is not restricted to specific pages, it happens on random pages. Of course, the most critical is the home page, which caused us to lose a lot of users when it was occurring.

    2. When W3TC was disabled, the problem went away.

    3. It looks like the problem is related to either page cache, browser cache or both. I currently have W3TC with both of these off and no issues are occurring. The reason I suspected this was that if I went in incognito (i.e., no cache) and flushed the page cache, issue went away. But regular users cached the redirect through browser cache. I think browser cache is not the issue, but a side problem, I plan to turn it back on soon.

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