WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
super cache does not work when site url different with homepage url. (6 posts)

  1. hwaming
    Member
    Posted 3 years ago #

    I found that when I change site address different with install folder at general setting, the super cache pluging will not work, or it can't be working correctly.

    it is a bug

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    How doesn't it work? I've tested with the site address different to the install folder and it works for me. Was it .htaccess rules or something? You probably need to regenerated them.

  3. hwaming
    Member
    Posted 3 years ago #

    when I change it , then go to super cache config , it will show

    "Rewrite rules must be updated
    The rewrite rules required by this plugin have changed or are missing. Scroll down the Advanced Settings page and click the Update Mod_Rewrite Rules button."

    but scroll down the advance setting, their do not have update mod_rewrite rules button. only show :

    Mod Rewrite rules cannot be updated!
    You must have BEGIN and END markers in /.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 WordPressRefresh this page when you have updated your .htaccess file.

    and it can't be generated, always 0 page regenerated.

    but I change the site homepage url back same as install folder, everything are ok.

  4. hwaming
    Member
    Posted 3 years ago #

    I install in sub-folder

  5. hwaming
    Member
    Posted 3 years ago #

    install directory /wordpress/
    but site address set to /blog/

    they are ok for both /wordpress/

    then got problem.

  6. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    You need the BEGIN and END comments around the WordPress rules in your .htaccess, that's why it's not updating. The rewrite rules are shown on the settings page so you can edit the .htaccess yourself and make sure they match. Sometimes it's necessary unfortunately.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic