WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Version 1.0 and 1.1 - Rewrite Rules Failure (1 post)

  1. GimliLongBow
    Member
    Posted 2 years ago #

    I've set up a server on EC2 using Ubuntu 12.04 and then installed WordPress with WP Super Cache through Apache2. Things seemed to be going great until I noticed that PHP was being used to serve files rather than the mod_rewrite rules. After some debugging, I found out that the generated RewriteRules were incorrect. Here's what was generated:

    RewriteCond /var/www/clients/client3/web3/web/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz -f
    RewriteRule ^(.*) "/web/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz" [L]

    And here's what it should have been:

    RewriteCond /var/www/clients/client3/web3/web/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz -f
    RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz" [L]

    Notice the extra /web/ in the beginning of the RewriteRule. This happens for all four variations of the rules. Do you have any thoughts as to why this would be happening? Thanks!

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic