Support » Plugin: WP Super Cache » How To Prepare For Using WP Super Cache

  • Installing WP Super Cache can be a bit confusing if you are not familiar with it, or with .htaccess files. It took me a day to figure out what I was doing wrong, which was resulting in a lot of 404 errors with the Googlebot.

    Basically, BEFORE you hit the “Update Mod_Rewrite Rules” button on the “Advanced” tab of the “WP Super Cache Settings” page in WP, you need to do this:

    1. Make sure there is an .htaccess file at the top level of your blog, that is, in your blog’s root directory.

    2. Make sure there is also an .htaccess file in “wp-content/cache/”

    3. If a .htaccess file does not exist in either one of these two places — they are normally invisible — you can make them yourself in the Terminal on Mac OS X.

    4. Using the Terminal, cd — change directory — to the directory where the .htaccess file needs to be created.

    5. Type “sudo pico .htaccess” to create the file.

    6. Enter your admin password when requested.

    7. Save the newly-created .htaccess file.

    8. Once you are sure that these two .htaccess files exist, you need to open the one that is located in “wp-content/cache” and add the following rule to it:

    # BEGIN WordPress
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    9. Save the edited .htaccess file.

    10. At this point, I advise you to reboot your server just to play it safe.

    11. Once you have rebooted your server, go back to the “Advanced” tab of the “WP Super Cache Settings” page and hit the “Update Mod_Rewrite Rules” button. WP Super Cache will then inform you that it has added the necessary rewrite rules to both of the aforementioned .htaccess files.

    12. You should now be good to go. You can go to the “Contents” tab and click on the link there in order to see exactly what WP Super Cache is doing for you insofar as caching is concerned.

    I hope this little tutorial helps some of you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Donncha O Caoimh


    Good guide, but you don’t need to reboot your server after editing or creating a .htaccess file!

    Hello Donncha. Well, for some reason, in my case, I apparently did. I am not an Apache guru, so I cannot explain it. All I know is, it didn’t start working until after I rebooted the server.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How To Prepare For Using WP Super Cache’ is closed to new replies.