Page 2 of 2
Re: novice cherche info ..
Posted: Wed Sep 12, 2007 5:55 pm
by Pierre M.
michel17 wrote:
je vais mettre cmsmadesimple a la racine pour avoir une url encore plus courte.
Ce déménagement n'est pas nécessaire. Ni même souhaitable, à mon avis.
Essayez plutôt
Code: Select all
RewriteEngine on
RewriteBase /nomdudossier
ou cherchez rewritebase dans les forums anglophones.
Pierre M.
Re: novice cherche info ..
Posted: Thu Sep 13, 2007 8:48 am
by michel17
je suis d'accord, je préfèrerais garder CMSMS dans un répertoire.
mais je suis nul en anglais ....
mon .htacess donne ça :
AddType x-mapp-php5 .php
RewriteEngine On
RewriteBase /vitrine17
#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
et mon config.php :
#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'] = '';
#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'] = false;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
je vais faire quelques recherches on c'est jamais ..
et merci Pierre M pour ton aide et tes conseils

Re: novice cherche info ..
Posted: Fri Sep 14, 2007 4:53 pm
by Pierre M.
Bonsoir,
ça a l'air pas mal à première vue. Quoique je verrais bien $config['page_extension'] = '.html'; et la vue hiérarchique activée mais c'est affaire de goûts.
ça ne fonctionne pas ? Peut on marquer ce fil [résolu] ?
Pierre M.
Re: novice cherche info ..
Posted: Sat Sep 15, 2007 5:59 pm
by michel17

dans l'ensemble ca marche ...(a part quand on clique sur les lien du site la hiérarchie réapparée dans l'url.
je vais voir comment marquer résolu.
encore merci
michel