Salve a tutti, sto realizzando un sito con Joomla! e prima di pubblicarlo su un webhost a pagamento lo sto realizzando in locale sul mio pc. Il sito sarà disponibile in tre lingue Inglese (lingua di default), Italiano e Spagnolo, quindi per questo ho installato JoomFish 2.0.1 la versione di Joomla è la 1.5.9 .
Fino ad adesso tutto ok ma da quando ho provato ad attivare il mod_rewrite con le opzioni SEO native di joomla ho avuto errori 404 per tutte le pagine tranne che per la home in inglese, credendo che ci fosse bisogno di un componente più avanzato ho disattivato le 3 opzioni SEO di Joomla e ho installato sh404SEF 1.0.19 Beta build 232 ma attivando l' .htcaccess con questo componente il risultato non cambia. Joomla è in una sottocartella chiamata joomla e non nella root del server quindi ho messo l' .htcaccess nella root e ho specificato la cartella di joomla, inoltre anche se mi da errore 404 le opzioni SEO sembrano funzionare perchè effettivamente gli url cambiano e in particolare attivando il mod_rewrite si può notare la mancanza della parte index.php.
Qui scrivo alcune caratteristiche del server:
Windows xp professional sp3
Apache 2.2.11
PHP 5.2.8
MySQL 5.0.67
per installare questi componenti sul pc ho seguito lestruzioni del sito html.it
volevo aggiungere che è installato anche xmap per creare una sitemap e virtuemart perchè il sito dovrà contenere sezioni e categorie multiple anche se al momento non è stato assolutamente utilizzato per creare nessun tipo di contenuto sezione o categoria.
questo è il mio .htaccess
##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
RewriteBase /joomla
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
Ovviamente disattivando il mod_rewrite tutto torna a funzionare correttamente ma aventdo quel maledetto index.php nell' url.
Ho provato veramente di tutto ho letto un sacco di post guide etc ho anche provato vari componenti come joomsef (peggio) non so più cosa fare, spero mi possiate aiutare, e grazie in aticipo per il vostro aiuto.