To enjoy all the functionalities of the development environment we must create two virtualhosts as follow:
<VirtualHost *:80> DocumentRoot /www/framework/public ServerName framework.dev ServerAlias *.framework.dev RewriteEngine On #Allowed media extensions (includes .txt files for robots or .html, e.g: Google hosted HTMLs): RewriteCond %{REQUEST_FILENAME} !^(.+)\.(js|css|gif|png|jpg|swf|ico|txt|html)$ RewriteRule ^/(.+) /index_dev.php [QSA,L] </VirtualHost>
<VirtualHost *:80> DocumentRoot /www/framework/public ServerName framework.prod ServerAlias *.framework.prod RewriteEngine On #Allowed media extensions (includes .txt files for robots or .html, e.g: Google hosted HTMLs): RewriteCond %{REQUEST_FILENAME} !^(.+)\.(js|css|gif|png|jpg|swf|ico|txt|html)$ RewriteRule ^/(.+) /index.php [QSA,L] </VirtualHost>