Question

W3 Total Cache on Ubuntu / Apache

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?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.