Support » Plugin: W3 Total Cache » “Cache 404 pages” breaks wordpress url autocorrect

  • Resolved dberdal

    (@dberdal)


    In previous versions of w3tc I believe this setting did not break default wordpress behaviour. However, it is breaking wordpress default behavior for auto correcting / redirecting urls.

    For example, by default, a link such as mysite.com/privacy-policy/ would auto redirect to mysite.com/privacy-policy-usa/ if privacy-policy was a 404. However, with “cache 404 pages” turned on /privacy-policy/ will return a browser 404, not even showing the normal wordpress 404 page.

    To replicate:

    • Turn on disk cache basic
    • turn on “cache 404 (not found pages)”
    • find a post url such as mysite.com/somepost
    • delete the last few characters of the url ie mysite.com/somepo
      it will return a browser 404 page

    Next:

    • Turn off disk cache basic
    • access mysite.com/somepo
    • it will auto-redirect to mysite.com/somepost/
    • This topic was modified 1 year, 10 months ago by dberdal.
    • This topic was modified 1 year, 10 months ago by dberdal.
    • This topic was modified 1 year, 10 months ago by Steven Stern (sterndata).
    • This topic was modified 1 year, 10 months ago by James Huff. Reason: improperly nested HTML fixed
    • This topic was modified 1 year, 10 months ago by Steven Stern (sterndata).
Viewing 1 replies (of 1 total)
  • Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @dberdal,

    Thank you for your inquiry and I am happy to assist you with this.
    As you can see in the description of the “Cache 404 (not found) pages” option:

    If the disk enhanced method of disk caching is used, 404 pages will be returned with a 200 response code. Use at your own risk.

    This is expected behavior when Disk Basic is selected with “Cache 404 (not found) pages”

Viewing 1 replies (of 1 total)
  • The topic ‘“Cache 404 pages” breaks wordpress url autocorrect’ is closed to new replies.