• As soon as I activate WP Super Cache, all pages in my /blog directory are blank & white. I have to SSH in and delete all its files to get things working again. Yes, I read the instructions about removing a couple items before activating.

    The behavior leads me to suspect it is an htaccess issue. WP is installed in a subdirectory at sitename.com/blog, and there are htaccess files at sitename.com/ and at sitename.com/blog/. Which one, or both, should have the htaccess modifications applied? Do they need to be modified to accommodate the fact that WP is in a subdirectory?

    https://www.ads-software.com/plugins/wp-super-cache/

Viewing 4 replies - 1 through 4 (of 4 total)
  • For default, if you are not set cache mode to “mod_rewrite”, all possible htaccess changes are not necessary. This plugin uses only root and /cache directories, so in most cases inner htaccess don’t have an effect.

    You can try remove your not-standart htaccess from all directories, and try enable this plugin again.

    Thread Starter briandunning

    (@briandunning)

    OMG, deleting /blog/.htaccess solved everything. Thank you!!!

    I am having problems
    I previously shared hosting wear no problem on my website chace
    but after I moved to vps hosting, I have problems. PageSpeed Insights my website to red, I think that the cause is the browser cache. how a solution to this, because I use wp super chahce, but there is a warning on mod_rewrite
    please help me
    This is my website (enterberita.com)

    @khotob

    You can add the browser cache rules manually to your .htaccess file in the root of your site files (same level as wp-content & wp-admin) (*take a backup first! **don;t disturb or insert within any existing rules *** if you use the final manager in cPanel you may need to enable “show hidden files”):

    # BEGIN Expire headers
    <ifModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault "access plus 0 seconds"
        ExpiresByType image/x-icon "access plus 2592000 seconds"
        ExpiresByType image/jpeg "access plus 2592000 seconds"
        ExpiresByType image/gif "access plus 2592000 seconds"
        ExpiresByType image/png "access plus 2592000 seconds"
        ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
        ExpiresByType text/css "access plus 604800 seconds"
        ExpiresByType text/javascript "access plus 648000 seconds"
        ExpiresByType application/javascript "access plus 648000 seconds"
        ExpiresByType application/x-javascript "access plus 648000 seconds"
        ExpiresByType text/html "access plus 600 seconds"
        ExpiresByType application/xhtml+xml "access plus 600 seconds"
    </ifModule>
    # END Expire headers
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Which htaccess needs to be modified?’ is closed to new replies.