novice cherche info .. Placer une banniére et "url propre"(Résolu)

Support en français pour CMS Made Simple.

Moderator: jce76350

Pierre M.

Re: novice cherche info ..

Post 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.
michel17
New Member
New Member
Posts: 9
Joined: Fri Jun 29, 2007 1:39 pm

Re: novice cherche info ..

Post 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  :)
Pierre M.

Re: novice cherche info ..

Post 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.
michel17
New Member
New Member
Posts: 9
Joined: Fri Jun 29, 2007 1:39 pm

Re: novice cherche info ..

Post 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
Post Reply

Return to “French - Français”