Question: I know very little about symfony framework. I copied a website www.example.net to www.example.com site works with url 
```
www.example.com/www/app.php
```
 or even with 
```
www.example.com/www/
```
 but I want it to redirect automatically to app.php without showing it in the url. My htaccess in the www (web) directory is as follows:

```

&ltIfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ app.php [QSA,L]
&ltIfModule>

```

It doesn't redirect.

Thanks

Answer: 
In your Vhost:

Change this line (Directory section):

```
AllowOverride None

```

to:

```
AllowOverride All

```
Instead of that rule can you try:

```
RewriteBase /www/
RewriteRule ^((?!app\.php).*)$ app.php/$1 [NC,L]

```

Sorry I can't test with Symphony as I am not near my home computer.