WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. technabob
    Member
    Posted 1 year ago #

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

    http://technabob.com/blog

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

    http://technabob.com/

    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.

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. technabob
    Member
    Posted 1 year 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);
    require('./blog/wp-blog-header.php');

    Whereas the version under /blog looks like this:

    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');

    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
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic