Question

cakePHP URL rewriting not working in Ubuntu

I recently installed a new droplet and followed the tutorial on the site for the installation of cakePHP on Ubuntu. I have confirmed that i have the url rewrite module in apache2 enabled (shows as shared in terminal), but when I go to my site I get a warning that URL rewriting is not properly configured. Any help would be appreciated.

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 @lancasterjones:

What did the trick for me was modifying the /etc/apache2/apache2.conf Change:

<Directory /var/www/>
       Options Indexes FollowSymLinks
       AllowOverride None
       Require all granted
</Directory>

To:

<Directory /var/www/>
       Options Indexes FollowSymLinks
       AllowOverride All
       Require all granted
</Directory>

Reload apache after you modify it.

View the original comment