The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. GimliLongBow
    Posted 4 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!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic