Modulo news e mod_rewrite

La discussione sul CMS Made Simple in italiano.

Moderator: magallo

Post Reply
User avatar
Samuele
Forum Members
Forum Members
Posts: 21
Joined: Wed Feb 04, 2009 8:15 am

Modulo news e mod_rewrite

Post 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
_________________________________________________
Samuele
User avatar
protempore
Power Poster
Power Poster
Posts: 599
Joined: Mon Jan 14, 2008 9:08 pm

Re: Modulo news e mod_rewrite

Post 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;
An eye for an eye will make the whole world blind
Mahatma Gandhi (1869-1948)
Post Reply

Return to “Italian - Italiano”