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?

link|improve this question

1  
Don't use .htaccess if you have access to edit the server config directly. .htaccess hurts performance and security. – stew Dec 13 '11 at 13:03
Where's this .htaccess located? – Shane Madden Dec 13 '11 at 21:09
@ShaneMadden, in the web folder – Jiew Meng Dec 14 '11 at 13:42
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.