Codice:
# ITA
# Inserisci questo file nella tua cartella principale di MD-Pro, assieme al file index.php principale
# La riga "Options FollowSymLinks" può a volte essere eliminata, siccome causa errori di
# configurazione su certi hosts!
#Options FollowSymLinks
RewriteEngine On
# ITA
# Quest'opzione è per l'uso in Virtual Hosts o in file .htaccess per inserire le regole di riscrittura solo
# nella sezione principale, così se possiedi un tuo server non dovrai copiare le regole di riscrittura in
# ogni Virtual Host che hai. Causerà errori se viene inserita nella sezione principale dell'httpd.conf.
# RewriteOptions 'inherit'
# index.php and user.php
RewriteRule ^cambialingua-([^-]+)\.(p)?htm(l)? /mdpro/index.php?newlang=$1 [L,NC,NS]
RewriteRule ^cambiatema-([^-]+)\.(p)?htm(l)? /mdpro/index.php?theme=$1 [L,NC,NS]
RewriteRule ^index\.(p)?htm(l)? /mdpro/index.php [L,NC,NS]
RewriteRule ^utente\.(p)?htm(l)? /mdpro/user.php [L,NC,NS]
# htmlp
RewriteRule ^htmlp-([0-9]+)\.(p)?htm(l)? /mdpro/index.php?module=htmlp&func=display&pid=$1 [L,NC,NS]
# daily_archive
RewriteRule ^archivio_giornaliero-([^-]+)\.(p)?htm(l)? /mdpro/index.php?module=daily_archive&func=$1 [L,NC,NS]
RewriteRule ^archivio_giornaliero-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?module=daily_archive&func=display&req=get&year=$1&month=$2 [L,NC,NS]
RewriteRule ^archivio_giornaliero-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?module=daily_archive&func=display&req=get&year=$1&month=$2&day=$3 [L,NC,NS]
RewriteRule ^archivio_giornaliero-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?module=daily_archive&func=display&req=get&year=$1&month=$2&day=$3&page=$4 [L,NC,NS]
# Articles / Articoli
RewriteRule ^Articolo([0-9]+)\.(p)?htm(l)? /mdpro/modules.php?op=modload&name=News&file=article&sid=$1&mode=thread&order=0&thold=0 [L,NC,NS]
RewriteRule ^Articolo([0-9]+)-([A-Za-z=]+)(-ordine([0-9]))?(-soglia([0-9\-]{1,2}))?\.(p)?htm(l)? /mdpro/modules.php?op=modload&name=News&file=article&sid=$1&mode=$2&order=$4&thold=$6 [L,NC,NS]
# FAQ
RewriteRule ^FAQ-Categoria([0-9]+)-([^-]+)-Superiore([0-9]+)-miafaq-([^-\.]+).htm$ /mdpro/modules.php?op=modload&name=FAQ&file=index&myfaq=$4&id_cat=$1&categories=$2&parent_id=$3 [L,NC,NS]
# General rules for modules with index.php?name=... / Regole generali per moduli con index.php?name=...
RewriteRule ^nome-([^-]+)\.(p)?htm(l)? /mdpro/index.php?name=$1&file=index [L,NC,NS]
RewriteRule ^nome-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?name=$1&file=$2 [L,NC,NS]
RewriteRule ^nome-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?name=$1&file=$2&$3=$4 [L,NC,NS]
RewriteRule ^nome-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?name=$1&file=$2&$3=$4&$5=$6 [L,NC,NS]
RewriteRule ^nome-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?name=$1&file=$2&$3=$4&$5=$6&$7=$8 [L,NC,NS]
RewriteRule ^nome-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?name=$1&file=$2&$3=$4&$5=$6&$7=$8&$9=$10 [L,NC,NS]
# General rules for modules with index.php?module=... / Regole generali per moduli con index.php?module=...
RewriteRule ^mod-([^-]+)\.(p)?htm(l)? /mdpro/index.php?module=$1&func=main [L,NC,NS]
RewriteRule ^mod-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?module=$1&func=$2 [L,NC,NS]
RewriteRule ^mod-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?module=$1&func=$2&$3=$4 [L,NC,NS]
RewriteRule ^mod-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?module=$1&func=$2&$3=$4&$5=$6 [L,NC,NS]
RewriteRule ^mod-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?module=$1&func=$2&$3=$4&$5=$6&$7=$8 [L,NC,NS]
RewriteRule ^mod-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/index.php?module=$1&func=$2&$3=$4&$5=$6&$7=$8&$9=$10 [L,NC,NS]
# General rules for modules with modules.php?op=modload&name=...&file=... / Regole generali per modules.php?op=modload&name=...&file=...
RewriteRule ^([^-]+)\+([^-]+)\.(p)?htm(l)? /mdpro/modules.php?op=modload&name=$1&file=index&req=$2 [L,NC,NS]
RewriteRule ^([^-]+)\.(p)?htm(l)? /mdpro/modules.php?op=modload&name=$1&file=index [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/modules.php?op=modload&name=$1&file=$2 [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/modules.php?op=modload&name=$1&file=$2&$3=$4 [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6 [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6&$7=$8 [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.(p)?htm(l)? /mdpro/modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6&$7=$8&$9=$10 [L,NC,NS]