WordPress.org

Forums

WP Super Cache
Mod Rewrite Rules (6 posts)

  1. mWoods
    Member
    Posted 5 years ago #

    Does this need to be in the .htaccess file all of the time? This is displayed in my WP Super Cache Plugin control. Is so, where exactly. Or, am I supposed to delete the wordpress mod rewrite section and add place this there?

    You must have BEGIN and END markers in /home/funcity/public_html/.htaccess for the auto update to work. They look like this and surround the main WordPress mod_rewrite rules:
    # BEGIN WordPress
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress
    Refresh this page when you have updated your .htaccess file.

    I have this installed in the MU plugin folder. Actually, I'm not sure it is using Super Cache properly.

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

  2. Theiceman6
    Member
    Posted 5 years ago #

    Yeah I have the same problem.

    but .htaccess looks like this :

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    php_value memory_limit 64M

    what to edit ?

  3. qdinar
    Member
    Posted 5 years ago #

    now (current version) wordpress root directory htaccess is not such!

    it is:

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    ...
    ...
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    make it this:

    RewriteEngine On
    RewriteBase /
    
    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    ...
    ...
    RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html" [L]
    </IfModule>
    
    # END WPSuperCache
    
    # BEGIN WordPress
    
    #uploaded files
    ...
    ...
    SecFilterScanPOST Off
    </Files>
    </IfModule>
    
    # END WordPress
  4. Donncha O Caoimh
    Member
    Plugin Author

    Posted 5 years ago #

    I need to update those rules.

  5. mWoods
    Member
    Posted 5 years ago #

    Donncha, would it be better to move WP Supercache to the regular plug-in folder from the wpmu plug-in folder. If so, will your plug-in update itself and the .htaccess file if it is multi-site activated without me having to update the .htaccess file myself.

  6. Donncha O Caoimh
    Member
    Plugin Author

    Posted 5 years ago #

    No, it doesn't matter. No, you have to update the .htaccess file. Do it from the main blog on your site.

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