Joomla.it Forum
Componenti per Joomla! => SEO => : Ricsca 09 Dec 2007, 20:20:04
-
Se volessi far funzionare sh404SEF con il file .hataccess, qualcuno mi saprebbe mica dire che modifica devo fare al file .hataccess?
Quello che ho ora è il seguente:
## Can be commented out if causes errors, see notes above.
#Options FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)
RewriteBase /
########## Begin Standard SEF Section
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see #notes##
#RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End Standard SEF Section
########## Begin 3rd Party or Core SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see ##notes##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ /index.php?option=com_comprofiler&task=userProfile&user='$1' [L]
RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^([^/]+)/?$ /index.php?option=com_comprofiler&task=userProfile&user='$1' [L]
#
########## End 3rd Party or Core SEF Section
-
Credo di aver capito...
Mi sa che devo decommentare
########## Begin - 3rd Party SEF Section
e commentare
########## Begin - Joomla! core SEF Section
Qualcuno mi potrebbe confermare o smentire? ;)
Righe corrette nel file .hataccess
########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section
########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section
-
devi copiare il file che ti consiglia il componente quando lo istalli. il tuo sito (strafantastico!!! ;D)non è in una sottocartella e quindi non devi modificare niente.
non so altro ;D :o [ot]ti ho risposto perchè non ho capito dove sono i rettili ;D
dovrei fare un regalo [ot] ;D
-
Ma io non vedo nessun file .hataccess che mi viene consigliato ;)
Se vado a leggere nella documentazione (tuta in inglese...) da quello che ho capito c'è solo quel riferimento che ho scritto sopra da fare al file .hataccess normale).
Ps
OT: On-line vendo solo accessoristica, non vendo animali in quanto è vietato spedirli.
Se ti servono info scrivimi in privato o visita anche il mio secondo sito www.tartaportal.it che non è uno shop on-line
-
Ciao (e ciao a tutti, visto che è il mio primo post).
Io a dire la verità non noto differenze fra deccomentare e commentare le righe che hai citato...a me sh404sef funziona lo stesso.
Solo una cosa mi è rimasta indietro in quel componente!
le url le fa così:
www.miosito.com/index.php/il-resto-ok.html
non so davvero come (e dove) mettere le mani per cambiare questa cosa!
P.S:
-Sono su un server dedicato all'interno di una cartella htdocs
-Le immagini dal gestore dei media non mi si vedono, probabilmente a causa dell'URL rewrite??
-
Non noti nessuna differenza in quanto stai utilizzando sh404SEF senza file .hataccess.
Per utilizzarlo con il file .hataccess devi andare in configurazione di joomla e spuntare l'utilizzo del file .hataccess
Dopo di che vai in admin di sh404SEF, clicci sul link a destra "Clicca qui per passare alla visualizzazione estesa (con tutti i parametri disponibili)" e poi nell'icona a sinistra "Configurazione sh404SEF" dopo di che vai su "Avanzato" e setti che vuoi utilizzare il file .hataccess
Ciao