WP Super Cache
Site in a subdirectory not flushing cache on home page (4 posts)

  1. technabob
    Posted 3 years ago #

    Due to some legacy pathing, my site actually resides at:


    But we have our server set up to return the /blog/index.php page when visitors reach


    WP-SuperCache updates /blog whenever a new post is published, but the / version doesn't seem to update until the cache expires or if I manually clear the cache.

    Any ideas? / and /blog should be identical at all times, but I don't want to do a 301 from / to /blog because of potential SEO penalties for doing that.


  2. technabob
    Posted 3 years ago #

    Oh, and just to be clear, it's actually not a server config that's returning the theme when accessing / (index.php), it's an actual file set up under the root at index.php that does this:

    define('WP_USE_THEMES', true);

    Whereas the version under /blog looks like this:

    define('WP_USE_THEMES', true);

    So I'm trying to figure out how to get WP-supercache to flush the root index.php page even though it sits above the /blog subdirectory.

  3. Donncha O Caoimh
    Plugin Author

    Posted 3 years ago #

    Why not just put the site at / and do 301 redirects? Google will transfer any pagerank to the new site. That's what a 301 redirect is for!

  4. technabob
    Posted 3 years ago #

    You're right... In theory.

    However, I've had problems in the past with 301s decreasing pagerank and affecting overall ranking of pages. Since we rely so heavily on search traffic, I've tried to avoid doing that. For some reason Google seems to penalize a 301 compared to a 200 - at least sometimes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic