What i Have
A Symfony2 project on DEV environment.
My Symfony folder (named portfolio) is in this folder :
/home/araymond/public_html/portfolioLet's say i have this url : http://www.example.com/~araymond/portfolio/web/app_dev.php/home
What i want
Remove /web/app_dev.php from url.
What have i tried so far
When i go to http://www.example.com/~araymond/portfolio/home, i encounter the following error:
No route found for "GET /~araymond/portfolio/home"
404 Not Found - NotFoundHttpException
Here is my portfolio/.htaccess :
RewriteEngine on
RewriteBase /~araymond/portfolio/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# DEV ENVIRONMENT #
RewriteRule ^$ web/app_dev.php [QSA]
RewriteRule ^(.*)$ web/app_dev.php/$1 [QSA,L]
Here is my portfolio/web/.htaccess:
DirectoryIndex app.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^app\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]
# Rewrite all other queries to the front controller.
RewriteRule .? %{ENV:BASE}/app.php [L]
</IfModule>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /app.php/
</IfModule>
</IfModule>
I can't find any solutions that allow me to remove the /web/app_dev.php part.