rhertzog
Member
Posted 1 year ago #
I have my Apache configuration for WordPress in an centralized apache configuration file (in /etc/) and not in a .htaccess file.
Trying to configure wp-super-cache in this situation is painful. It will never tell you the Apache rules that you need to add. It would be nice if we could get the rules even if the code doesn't detect anything in .htaccess.
Alternatively there could be an option where you can point to another file than .htaccess...
http://wordpress.org/extend/plugins/wp-super-cache/
It absolutely does show you the rewrite rules to use. There's even a button that says "view rewrite rules" on the Advanced tab of the plugin configuration pages.
rhertzog
Member
Posted 1 year ago #
No, it doesn't if your .htaccess is empty. I get this:
`Mod Rewrite Rules
Mod Rewrite rules cannot be updated!
You must have BEGIN and END markers in /usr/share/wordpress/.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.`
And there's no button "View rewrite rules".
rhertzog - your situation is probably a rare one but I'll see about showing the rewrite rules regardless of whether the WordPress rules are found or not.
rhertzog - Check out the dev version on the "Other versions" page in about 20 minutes. Or svn co http://svn.wp-plugins.org/wp-super-cache/trunk
The plugin will show a warning but it should show the rewrite rules.
rhertzog
Member
Posted 1 year ago #
Thanks donncha. It works.