Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.