Welcome to Centmin Mod Community
Register Now

Wordpress WP Super Cache and .htaccess ?

Discussion in 'Blogs & CMS usage' started by Megaplex21, Oct 1, 2016.

  1. Megaplex21

    Megaplex21 New Member

    29
    2
    3
    Sep 28, 2016
    Ratings:
    +2
    Local Time:
    6:09 AM
    1.10.1
    based on suggestion no.3
    To complete setup:
    1. Enable Permalinks (DO NOT use links with .html extensions for performance reasons) i.e. /%post_id%/%postname%/
    2. Settings Menu > Super Cache > Easy tab and enable it by checking Caching On (Recommended) and hit Update Status
    3. Advanced tab & check Use mod_rewrite serve cache files & Don’t cache pages with GET parameters and Known User.
    (Recommended), Cache rebuild for anonymous users, clear all cache when a post or page updated & hit Update Status

    when i check Use mod_rewrite serve cache files it's showed notification like this
    Mod Rewrite rules cannot be updated!

    You must have BEGIN and END markers in /home/nginx/domains/bioskopbokep.com/public/.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.
    WP Super Cache mod rewrite rules were detected in your /home/nginx/domains/bioskopbokep.com/public/.htaccess file.
    Click the following link to see the lines added to that file. If you have upgraded the plugin, make sure these rules match.

    A difference between the rules in your .htaccess file and the plugin rewrite rules has been found. This could be simple whitespace differences, but you should compare the rules in the file with those below as soon as possible. Click the ’Update Mod_Rewrite Rules’ button to update the rules.

    i go to /home/nginx/domains/bioskopbokep.com/public/ but can't find .htaccess file what should i do?
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,017
    6,923
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,429
    Local Time:
    9:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    you ignore it when it mentions .htaccess as only applies to apache and not nginx. Centmin Mod Nginx already sets up nginx rules for equivalent .htaccess.
     
  3. Megaplex21

    Megaplex21 New Member

    29
    2
    3
    Sep 28, 2016
    Ratings:
    +2
    Local Time:
    6:09 AM
    1.10.1
    ohh just ignore that message, but that's mean my wp super cache work right?
     
  4. eva2000

    eva2000 Administrator Staff Member

    31,017
    6,923
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,429
    Local Time:
    9:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    yes the .htaccess equivalent nginx wp super rules are in your you include file at /usr/local/nginx/conf/wpincludes/${vhostname}/wpsupercache_${vhostname}.conf
     
  5. Megaplex21

    Megaplex21 New Member

    29
    2
    3
    Sep 28, 2016
    Ratings:
    +2
    Local Time:
    6:09 AM
    1.10.1
    ok, thanks for your help
     
    • Like Like x 1