Buonasera a tutti.
Ho visto l'enorme numero dei post sul RewriteRule e quindi si vede che il problema è sentito.
Il mio è questo: vorrei che nella pagina home al posto dell'URL /index.php?&language=it_IT ci fosse l'URL /la-mia-home . Considerato poi che ci sono 7 lingue mi piacerebbe che ce ne fosse una per ognuna (vale a dire /my-home, /ma-home, etc).
Ho provato a mettere mano al file htaccess, ma con nessun risultato.
Questo è il mio htaccess:
$Id: .htaccess $
This is used with Apache WebServers
For this to work, you must include the parameter 'Options' to
the AllowOverride configuration
Example:
<Directory "/usr/local/apache/htdocs">
AllowOverride Options
</Directory>
'All' with also work. (This configuration is in the
apache/conf/httpd.conf file)
The following makes adjustments to the SSL protocol for Internet
Explorer browsers
<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".MSIE."
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>
Fix certain PHP values
(commented out by default to prevent errors occuring on certain
servers)
#<IfModule mod_php4.c>
php_value session.use_trans_sid 0
php_value magic_quotes_gpc 0
#</IfModule>
RewriteEngine on
RewriteBase /
RewriteRule ^([0-9]+)--(.)$ info.php?articles_categories&articles_categories_id=$1&%{QUERY_STRING}
RewriteRule ^([a-zA-Z0-9-])/([0-9]+)--(.)$ info.php?articles&articles_id=$2&%{QUERY_STRING}
RewriteRule ^([0-9]+)-f-(.).html$ info.php?faqs&faq_id=$1&%{QUERY_STRING}
RewriteRule ^([0-9]+)-([a-zA-Z0-9-])/([0-9]+)-([a-zA-Z0-9-]).html$ products.php?$3&cPath=$1&%{QUERY_STRING}
RewriteRule ^([0-9]+)([a-zA-Z0-9-])/([0-9]+)-([a-zA-Z0-9-]).html$ products.php?$3&manufacturers=$1&%{QUERY_STRING}
RewriteRule ^([a-zA-Z0-9-])/([0-9]+)-([a-zA-Z0-9-]).html$ products.php?$2&%{QUERY_STRING}
RewriteRule ^([0-9]+)-t-(.).html$ products.php?tell_a_friend&$1&%{QUERY_STRING}
RewriteRule ^([0-9]+)-(.)$ index.php?cPath=$1&%{QUERY_STRING}
RewriteRule ^([0-9]+)(.*)$ index.php?manufacturers=$1&%{QUERY_STRING}
RewriteRule ^contact.html$ info.php?contact&%{QUERY_STRING}
RewriteRule ^sitemap.html$ info.php?sitemap&%{QUERY_STRING}
RewriteRule ^faqs.html$ info.php?faqs&%{QUERY_STRING}
RewriteRule ^index.php?&language=it_IT$ /mio-sito <--- questa è la stringa che ho aggiunto io, il resto era di default dal produttore del CMS - TomatoCart
Dove sto sbagliando?
Vi prego, un'anima buona che mi aiuti
Grazie mille
Buona serata