Problème Symfony [ apparament sa vient de l'url rewriting...
Bonjour à tous.
Alors voila, j'ai decider de me mettre à Symfony.
J'ai donc installer en local , aucun problème de ce coté la. Après j'ai envoyer les fichiers par ftp.
C'est la que ça va pas. Quand je vais a l'adresse : www.foforum.fr/web sa m'affiche un Erreur 404.
Pourtant, les adresses suivantes marchent :
- www.foforum.fr/web/index.php
- www.foforum.fr/web/frontend_dev.php
Voila le contenu de mon fichier .htaccess dans le dossier web :
AddType x-mapp-php5 .php // active php5 , sinonc'est php4
Options +FollowSymLinks +ExecCGI <IfModule mod_rewrite.c> RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work #RewriteBase / # we skip all files with .something #RewriteCond %{REQUEST_URI} \..+$ #RewriteCond %{REQUEST_URI} !\.html$ #RewriteRule .* - [L] # we check if the .html version is here (caching) RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] </IfModule>
Merci d'avance et j'espere avoir bien expliquer mon problème.
Réponses apportées à cette discussion
Oups, il semblerais que l'indentation n'est pas fonction.J'ai aussi oublier les balises
.htaccess
AddType x-mapp-php5 .php // active php5 , sinon c'est php4 Options +FollowSymLinks +ExecCGI <IfModule mod_rewrite.c> RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work #RewriteBase / # we skip all files with .something #RewriteCond %{REQUEST_URI} \..+$ #RewriteCond %{REQUEST_URI} !\.html$ #RewriteRule .* - [L] # we check if the .html version is here (caching) RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] </IfModule>
