• Resolved Ben1098765

    (@ben1098765)


    Hi

    I have this plugin working almost perfectly on a Windows IIS server, which is great because all other caching plugins fail for me. However, the server is returning a 404 Not Found on the homepage.

    Looking at the /wp-content/cache/all/ folder, all the pages have their own cached folders, but there’s no index.html in the main /all/ folder for the homepage, so for some reason it’s not being created.

    I don’t have any other caching plugins installed, and the only option I have enabled for WP Fastest Cache is the “Cache System: Enable” checkbox.

    The site is currently in staging, and I’m unable to share a link.

    Is there anything I need to manually add to web.config to get it working? I only ever work with Apache/Nginx, so I’m a bit out of my depth on this server!

    Any ideas?

    Thanks in advance

    Ben

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

    (@emrevona)

    no need to add anything into the config file. are you are sure there is no permission problem?

    Thread Starter Ben1098765

    (@ben1098765)

    Hi Emre, many thanks for the response. Sorry I didn’t get back to you, the problem completely fell off my radar, but it is now back on, and we do need to speed up the homepage.

    So I’m pretty certain it’s not a permissions issue, as I can delete the /cache/ folder and WPFC then recreates the whole folder when requested for the other pages.

    Part of my original post was misleading as I’d forgotten that I’d actually excluded the homepage in WPFC because of the problems it was causing. In fact, the index.html file does get created, but it gives me a 404.

    Interestingly, when I rename the cached homepage file to default.html, the page works, but only once, as WPFC then creates another index.html file in the /all/ folder which supersedes default.html in the DefaultDocument order.

    It’s weird because index.html works fine in all the subfolders, just not the root /cache/all/ folder. If WPFC were to output the cached files as default.html, then I’m sure it would work.

    Any ideas?

    Thanks again in advance

    Ben

    Plugin Author Emre Vona

    (@emrevona)

    can you contact me via email please: https://www.wpfastestcache.com/contact-us/

    Thread Starter Ben1098765

    (@ben1098765)

    Following up on this for anyone that it may assist.

    Our IIS server (Plesk) had placed its error rules before the WordPress rewrite rules within the web.config file.

    So by moving the <httpErrors> block after the <rewrite> block, the plugin was able to do its thing before being intercepted by the 404 page.

    Many thanks to Emre – your patience and help was hugely appreciated! ??

    Thread Starter Ben1098765

    (@ben1098765)

    (Resolved)

    Plugin Author Emre Vona

    (@emrevona)

    you are welcome ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cached Homepage Not Found on IIS’ is closed to new replies.