Page 1 of 1

Modulo news e mod_rewrite

Posted: Thu Feb 19, 2009 6:56 pm
by Samuele
Come posso attivare la riscrittuta degli url anche per il modulo news? Si può fare?

Cioè, ad esempio quando clicco su "leggi tutto", mi apre la pagina

Code: Select all

http://localhost:85/dm2/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=2&cntnt01returnid=21
io invece vorrei qualcosa del genere

Code: Select all

http://localhost:85/dm2/news-numero-1

Re: Modulo news e mod_rewrite

Posted: Thu Feb 19, 2009 10:19 pm
by protempore
devi settare a "true" in config.php queste variabili:

Code: Select all

#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'] = true;

#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;