Problème Symfony [ apparament sa vient de l'url rewriting ] -> chez 1and1 - Apprendre-PHP.com

Rechercher
Boutique en ligne, solution e-commerce, script PHP et PERL : RAYNETTE

Problème Symfony [ apparament sa vient de l'url rewriting...

Par zabowa -  1 reponse -  Le 24/05/2009 -  Flux RSS - 

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

Par zabowa -  Le 24/05/2009 - 

Oups, il semblerais que l'indentation n'est pas fonction.J'ai aussi oublier les balises

 

 

.htaccess
  1. AddType x-mapp-php5 .php // active php5 , sinon c'est php4
  2.  
  3. Options +FollowSymLinks +ExecCGI
  4.  
  5. <IfModule mod_rewrite.c>
  6.  
  7. RewriteEngine On
  8.  
  9. # uncomment the following line, if you are having trouble
  10.  
  11. # getting no_script_name to work #RewriteBase /
  12.  
  13. # we skip all files with .something
  14.  
  15. #RewriteCond %{REQUEST_URI} \..+$
  16.  
  17. #RewriteCond %{REQUEST_URI} !\.html$
  18.  
  19. #RewriteRule .* - [L]
  20.  
  21. # we check if the .html version is here (caching)
  22.  
  23. RewriteRule ^$ index.html [QSA]
  24.  
  25. RewriteRule ^([^.]+)$ $1.html [QSA]
  26.  
  27. RewriteCond %{REQUEST_FILENAME} !-f
  28.  
  29. # no, so we redirect to our front web controller
  30.  
  31. RewriteRule ^(.*)$ index.php [QSA,L]
  32.  
  33. </IfModule>

 

 

 

 

 

Ajouter une réponse à la discussion

Seuls les membres loggués sont autorisés à poster dans les forums !