I have mt files at /labs/Projects/BlogApp the web root of that project is /labs/Projects/BlogApp/web. I've set up an alias
Alias /blog/ /labs/Projects/BlogApp/web/
<Directory /labs/Projects/BlogApp/web/>
Options All
AllowOverride All
Order allow,deny
allow from 127.0.0.1
</Directory>
But htaccess is not working. I can access the site by http://localhost/blog/app_dev.php/posts/list but not by http://localhost/blog/posts/list for example.
htaccess looks like
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app_dev.php [QSA,L]
What can be wrong? I am on Ubuntu 11.10 if that matters. Looking at error log I see things like:
[Tue Dec 13 19:59:37 2011] [error] [client 127.0.0.1] File does not exist: /var/www/labs
Another site works with a similar setup, I must have missed out something?
.htaccesslocated? – Shane Madden Dec 13 '11 at 21:09webfolder – Jiew Meng Dec 14 '11 at 13:42