Joomla.it Forum

Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => : der kaiser 27 Aug 2012, 19:25:04

: [RISOLTO] impostazione seo joomla 2.5
: der kaiser 27 Aug 2012, 19:25:04
buonasera a tutti :)


in configurazione globale, ho selezionato "attiva url sef, riscrivi url sef e suffisso url".
questo è invece il contenuto del file .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 
RewriteBase /

########## 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) 


########## 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


putroppo, gli indirizzi url oltre al .html, hanno anche altri caratteri alla fine, come potete vedere ad esempio in questa pagina: http://colpani.altervista.org/musica.html#.UDutucFmLcg (http://colpani.altervista.org/musica.html#.UDutucFmLcg)


perchè? :)
: Re:impostazione seo joomla 2.5
: Fabiooo 27 Aug 2012, 19:37:10
ciao,


mi sembra che gli url creati prima di abilitare il rewrite delle url non vengono modificati, ma verranno scritti correttamente quelli nuovi
: Re:impostazione seo joomla 2.5
: der kaiser 27 Aug 2012, 19:51:29
veramente gli url sono stati riscritti, ma non terminano con il .html (come dovrebbero), ma dopo il .html ci sono altri caratteri
: Re:impostazione seo joomla 2.5
: luxtux 27 Aug 2012, 20:17:00
Hai provato a disabilitare il suffisso URL? O ci tieni proprio che gli URL finiscano con.html? Per comodità ti posto la sezione SEF del mio .htaccess:
:
## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

L.
: Re:impostazione seo joomla 2.5
: der kaiser 27 Aug 2012, 21:10:41
ho provato a inserire il tuo, ma niente è cambiato sigh sigh


diciamo che se finiscono per .html, è meglio :P
: Re:impostazione seo joomla 2.5
: giusebos 27 Aug 2012, 21:18:24
der kaise, cortesemente utilizza i tag code per il codice, inoltre per codice corposo come quello allegate un file di testo.
: Re:impostazione seo joomla 2.5
: der kaiser 28 Aug 2012, 21:35:59
ho risolto, potete chiudere.
tali stringhe erano semplicemente derivanti dal funzionamento di un altro plugin del quale non avevo letto tutta la documentazione  ::)
: Re:impostazione seo joomla 2.5
: giusebos 28 Aug 2012, 21:39:58
Devi tu inserire [risolto] nel titolo del primo post  ;)
: Re:[RISOLTO] impostazione seo joomla 2.5
: elasticgirl 07 Sep 2012, 22:04:10
@der kaiser
potresti spiegare quale plugin ti dava questo problema? Io non riesco ad individuare la causa della stringa dopo .html#.UEpTJ66E6uI
Grazie!
: Re:[RISOLTO] impostazione seo joomla 2.5
: der kaiser 07 Sep 2012, 22:31:45
Certo, evidentemente utilizzi anche tu il plugin (ho il codice) fornito da AddThis.
AddThis, per monitorare quanti utenti condividono i tuoi contenuti ti fornisce un codice con quella stringa finale (per tenere traccia di quanti utenti condividono la pagina facendo ctrl+c e ctrl+v), tuttavia questa opzione può essere disabilitata togliendo la spunta alla checkbox in basso a sinistra in questa pagina: https://www.addthis.com/get/sharing#.UEpY1LLN9uQ (https://www.addthis.com/get/sharing#.UEpY1LLN9uQ)
Ovviamente devi copiare il nuovo codice.
: Re:[RISOLTO] impostazione seo joomla 2.5
: elasticgirl 08 Sep 2012, 12:07:01
@der kaiser Grazie! era proprio questo plugin AddThis ad aggiungere quella stringa grazie alle tue instruzioni ho risolto  :D