Salve, ho realizzato un portale e ho usato l'htaccess per fare un rewrite della URI
codice:
RewriteEngine on
ErrorDocument 404 /it/errore.html
RewriteRule (.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/page/(.*)$ index.php?lang=$1&page=$2&tipi=$3®ione=$4&provincia=$5&partenza=$6&destinazione=$7&prezzo=$8&pag=$9 [L]
RewriteRule (.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)$ index.php?lang=$1&page=$2&tipi=$3®ione=$4&provincia=$5&partenza=$6&destinazione=$7&prezzo=$8 [L]
RewriteRule (.*)/(.*)/(.*)\.html index.php?lang=$1&page=$2&id=$3 [L]
RewriteRule (.*)/(.*)/page/(.*) index.php?lang=$1&page=$2&pag=$3 [L]
RewriteRule (.*)/(.*)\.html index.php?lang=$1&page=$2
Se il portale lo posiziono nella root dell'hosting tutto bene, se lo metto in una sottocartella crea problemi... cosa posso fare?