30/11/2013, 19:15:02
Non. J'ai modifier ici aussi. est-ce bien çà?
Code :
[== Indéfini ==]
# .htaccess
# Empecher de lire ou accéder au fichier .htaccess
<files .htaccess>
order allow,deny
deny from all
</files>
# Empecher de lire ou accéder au fichier config.php
<Files config.php>
order allow,deny
deny from all
</Files>
#Pour information lire le fichier /doc/htaccess.txt
# la site suivant votre serveur ...
#
# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"
#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off
# (this is important, so uncomment if your host permit)
#Options -Indexes
#ServerSignature Off
#
#Options +FollowSymLinks
#
# Activer les url propres (pretty-url)
# Donc vérifier si le mod_rewrite de votre serveur est actif
#
<IfModule mod_rewrite.c>
RewriteEngine on
#
RewriteBase /cmsms
#Exemple RewriteBase /cmsms - Attention à voir suivant les hébergement
## ne pas utliser RewriteBase en LOCAL en général
#
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>