[Résolu] Réécriture d'URL - Internal Server Error
Posted: Mon Nov 12, 2007 10:24 am
Bonjour,
J'essaie de règler CMS Made Simple 1.2 fr pour la réécriture d'URL.
Avec $config['internal_pretty_urls'] = false; j'obtiens l'url suivante :
http://www.xxxx.com/index.php/securite- ... umentation
Mais ça ne me convient pas, j'aimerai obtenir l'URL suivante : http://www.xxxx.com/securite-routiere/d ... ation.html
Voici ma config (je suis sur un serveur Amen) :
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
Fichier .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
Malheureusement, j'ai toujours ce message d'erreur : Internal Server Error
Est-ce que quelqu'un a une idée ?
D'avance merci,
Ben
J'essaie de règler CMS Made Simple 1.2 fr pour la réécriture d'URL.
Avec $config['internal_pretty_urls'] = false; j'obtiens l'url suivante :
http://www.xxxx.com/index.php/securite- ... umentation
Mais ça ne me convient pas, j'aimerai obtenir l'URL suivante : http://www.xxxx.com/securite-routiere/d ... ation.html
Voici ma config (je suis sur un serveur Amen) :
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
Fichier .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
Malheureusement, j'ai toujours ce message d'erreur : Internal Server Error
Est-ce que quelqu'un a une idée ?
D'avance merci,
Ben