13/01/2013, 23:05:02
Code :
<?php
# CMS Made Simple - Fichier de configuration
# Documentation : /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = '******';
$config['db_password'] = '******';
$config['db_name'] = '******';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'Europe/Paris';
?>
Mon dossier config.php
Code :
# .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 / cms1.11.3
#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>
Quand je renomme mon dossier .htaccess en .htaccess-test j'ai une erreur de connexion à la BDD alors que j'ai tout bon (dans les identifiants sur moins) donc le Internal Server Error vient du dossier .htaccess. Merci beaucoup de m'aider.