.htaccess is modified. It should probably be in the same directory as your wp-config.php. This file has special rules that serve the cached files very quickly to visitors without ever executing PHP. The .htaccess file can be updated automatically, but if that fails, the rules will be displayed here and it can be edited by you. You will not need to update the rules unless a warning shows here.', 'wp-super-cache' ); ?>
" . __( 'Thank you for upgrading.', 'wp-super-cache' ) . " " . sprintf( __( 'The mod_rewrite rules changed since you last installed this plugin. Unfortunately, you must remove the old supercache rules before the new ones are updated. Refresh this page when you have edited your .htaccess file. If you wish to manually upgrade, change the following line: %1$s so it looks like this: %2$s The only changes are "HTTP_COOKIE" becomes "HTTP:Cookie" and "wordpressuser" becomes "wordpress". This is a WordPress 2.5 change but it’s backwards compatible with older versions if you’re brave enough to use them.', 'wp-super-cache' ), 'RewriteCond %{HTTP_COOKIE} !^.*wordpressuser.*$ ', 'RewriteCond %{HTTP:Cookie} !^.*wordpress.*$ ' ) . "";
} else {
global $valid_nonce;
if ( $dohtaccess && ! isset( $_POST[ 'updatehtaccess' ] ) ){
if ( $scrules == '' ) {
wpsc_update_htaccess_form( 0 ); // don't hide the update htaccess form
} else {
wpsc_update_htaccess_form();
}
} elseif ( $valid_nonce && isset( $_POST[ 'updatehtaccess' ] ) ) {
if ( add_mod_rewrite_rules() ) {
echo "" . __( 'Mod Rewrite rules updated!', 'wp-super-cache' ) . " ";
echo "" . sprintf( __( '%s.htaccess has been updated with the necessary mod_rewrite rules. Please verify they are correct. They should look like this:', 'wp-super-cache' ), $home_path ) . "
\n";
} else {
global $update_mod_rewrite_rules_error;
echo "" . __( 'Mod Rewrite rules must be updated!', 'wp-super-cache' ) . " ";
echo "" . sprintf( __( 'The plugin could not update %1$s.htaccess file: %2$s. The new rules go above the regular WordPress rules as shown in the code below:', 'wp-super-cache' ), $home_path, "" . $update_mod_rewrite_rules_error . " " ) . "
\n";
}
echo "";
echo "
" . esc_html( $rules ) . " \n
";
} else {
?>
Click the following link to see the lines added to that file. If you have upgraded the plugin, make sure these rules match.', 'wp-super-cache' ), $home_path ); ?>
";
if ( $rules != $scrules )
echo '' . wp_text_diff( $scrules, $rules, array( 'title' => __( 'Rewrite Rules', 'wp-super-cache' ), 'title_left' => __( 'Current Rules', 'wp-super-cache' ), 'title_right' => __( 'New Rules', 'wp-super-cache' ) ) ) . "
";
echo "
# BEGIN WPSuperCache\n" . esc_html( $rules ) . "# END WPSuperCache \n";
echo "" . sprintf( __( 'Rules must be added to %s too:', 'wp-super-cache' ), WP_CONTENT_DIR . "/cache/.htaccess" ) . "
";
echo "# BEGIN supercache\n" . esc_html( $gziprules ) . "# END supercache ";
echo '';
}
}
?>
UTC time is %s', 'wp-super-cache' ), date_i18n( $timezone_format, false, 'gmt' ) ); ?> %1$s', 'wp-super-cache' ), date_i18n( $timezone_format ) ); ?> " . sprintf( __( 'Next scheduled garbage collection will be at %s UTC ', 'wp-super-cache' ), date_i18n( $timezone_format, $next_gc, 'gmt' ) ) . "";
if ( $wp_cache_preload_on )
echo "" . __( 'Warning! PRELOAD MODE activated. Supercache files will not be deleted regardless of age.', 'wp-super-cache' ) . "
";
echo "";
echo '\n";
?>