Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…3058 'controlleur.php' était bizarre pour un redirecteur d'url, je le renomme en 'routage' , pensez à mettre à jour vos .htaccess comme dans le modèle
  • Loading branch information
sletuffe committed Oct 27, 2014
1 parent ce9fb07 commit 6d271bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htaccess.modele.txt
Expand Up @@ -12,7 +12,7 @@ RewriteRule ^(.*)$ http://www.refuges.info/$1 [L,R=301]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /controlleur.php [L]
RewriteRule . ./routage.php [L]

php_value short_open_tag 1

Expand Down
5 changes: 4 additions & 1 deletion index.php
@@ -1,5 +1,8 @@
<?php
// Etant donné que la majorité des config apache cherche un tel fichier, je le créé juste comme un redirecteur, même si
// il serait sans doute préférable de s'en passer pour la "beauté de la cohérence"
include("controlleur.php");
// 27/10/2014 : sly, pourtant c'est moi qui ait écrit ça, mais je ne comprends pas pourquoi on ne pourrait pas effacer ce fichier ?
// il y a un rewrite qui fait tout pointer vers routage.php pourquoi l'index aurait il un traitement spécial ?
include("routage.php");
?>
File renamed without changes.

0 comments on commit 6d271bd

Please sign in to comment.