serveur mutualisé et .htaccess
bonjour,
je voudrais mettre 2 sites dans 2 répertoires différents.
httpdocs est la racine du serveur mutualisé, j'ai donc :
Code:
1 2 3
|
httpdocs/site1/ ...app...src..web...
httpdocs/site2/ ...app...src..web... |
j'accède donc aux 2 sites ainsi et il n'y a pas de problème :
Code:
1 2 3
|
http://site1/web/index
http://site2/web/index |
mais je voudrais avoir accès aux sites ainsi : (sans le "web")
Code:
1 2 3
|
http://site1/index
http://site2/index |
pour ça j'ai mis un .htaccess
httpdocs/site1/.htaccess et httpdocs/site2/.htaccess
Code:
1 2 3 4 5 6
|
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ web/$1 [QSA,L]
</IfModule> |
http://site1/index ou http://site2/index provoque une erreur Symfony :
Citation:
No route found for "GET /site1/index"
404 Not Found - NotFoundHttpException
1 linked Exception:
ResourceNotFoundException »
[2/2] NotFoundHttpException: No route found for "GET /site1/index" +
[1/2] ResourceNotFoundException: +
:aie: