W3 Total Cache on Ubuntu / Apache

September 3, 2014 3.8k views

Hi,

trying to activate W3 Total Cachce, but I got the following error:

W3 Total Cache error:It appears Minify URL rewriting is not working. Please verify that the server configuration allows .htaccess
Unfortunately minification will not function without custom rewrite rules. Please ask your server administrator for assistance. Also refer to the install page for the rules for your server.

Any guidance how to setup server to allow custom rewrite rules?

4 comments
  • Can you create the .htaccess file manually then try again to see if W3TC can put what it needs into the file?

  • Well yes. .htaccess is in the correct directory with the content suggested by w3tc.

  • Hi,

    if you want to activate rewrite rules with apache, you need to do the following :

    • activate mod_rewrite
    a2enmod rewrite
    
    • Configure your Directory to allow Override
    <Directory /var/www>
    AllowOverride All
    </Directory>
    

    Then, reload apache service, and the rewriting should work.

    Hope it could help

    Regards,

    --
    rustx

  • Mine, running on apache with zPanel threw up bunch of errors but also suggested few manual steps, which I followed and it seems its running since then..

    although I get a warning about :

    "Recently an error occurred while creating the CSS / JS minify cache: No sources to serve"

    Clueless about the same

    :(

1 Answer

This question was answered by @rustx:

Hi,

if you want to activate rewrite rules with apache, you need to do the following :

  • activate mod_rewrite
a2enmod rewrite
  • Configure your Directory to allow Override
<Directory /var/www>
AllowOverride All
</Directory>

Then, reload apache service, and the rewriting should work.

Hope it could help

Regards,

--
rustx

You can see the comment here.

Have another answer? Share your knowledge.