I can't seem to get URL rewriting to work on a Ubuntu 12.04 server with apache2 and when the default page loads (home) it's just plain text without CSS . I'm using Cake 2.3.9 and I get the following message upon a fresh install to /var/www/. So my root directory looks like
/var/www/app
/var/www/lib
/var/www/index.php
/var/www/.htaccess
....
The error I get is
URL rewriting is not properly configured on your server. 1. Help me configure it 2. I don't / can't use URL rewriting
I tried everything in this post but I stil get the message.
The only thing from that post I didn't do is the accepted answer, which was
Turns out the .htaccess file was not getting copied alongside the cakePHP source. This is a common issue when using the cp command or not having hidden files visible in a file browser, unless you copy the top-level directory. Doing a direct copy of the file to my project folder fixed it for me without having to mess with my apache settings.
Is that user suggesting to make sure .htaccess is /var/www? I don't quite get what they're suggesting to do. I downloaded Cake locally and then used SFTP to upload it to /var/www on my ubuntu server.
Unless there is some alternate modrewrite setting, I'm almost positive it's enabled. When I type sudo a2enmod rewrite
it says Module rewrite already enabled
I've also tried everything here and still no luck. I'm completely stuck.