Joomla.it Forum
Componenti per Joomla! => SEO => : akyaky 30 Sep 2012, 18:12:16
-
Ciao,
ho seguito la guida http://www.joomla.it/articoli-della-community/903-configurazione-seo-di-joomla-rendere-appetibile-il-sito-ai-motori-di-ricerca.html (http://www.joomla.it/articoli-della-community/903-configurazione-seo-di-joomla-rendere-appetibile-il-sito-ai-motori-di-ricerca.html) per l'eliminazione della stringa "index.php" ma la stringa non se ne va! Come mai?
I parametri SEO sono i seguenti:
- Search Engine Friendly URLs Yes
- Use URL rewriting No
- Adds Suffix to URL Yes
- Unicode Aliases No
Dove sbaglio? Devo fare delle modifiche ai titoli delle singole pagine? Son sicura che la soluzione è semplice e sotto ai miei occhi....solo che mi sto arenando dopo ore ed ore di tentativi e ricerche sul forum...
Grazie a tutti!
Aky
-
Utilizza un componente per l'url rewriting, ne trovi vari nella sezione SEF delle extensions:
http://extensions.joomla.org/extensions/site-management/sef
Buon test!
-
Ciao. Il problema è nel file .htaccess.
Lo hai innanzi tutto rinominato da htaccess.txt a .htaccess?
Una volta fatto questo aprilo e fai le seguenti modifiche:
Cerca la voce RewriteBase e modificala in RewriteBase /
Cerca la voce Options +FollowSymLinks e modificala anteponendo un cancelletto #Options +FollowSymLinks
Salva, chiudi e carica sul server.
Infine, sul pannello di controllo di Joomla io metto la spunta anche su "Use url rewriting"
Fammi sapere. Ciao
-
avevo già fatto tutto.....ma nel rinominare il file, avevo aggiunto il punto ma non tolto.txt
e non avevo modificato la spunta sul pannello di controllo!
Effettivamente ora funziona in tutte le pagine tranne una... ::)
posso mandarti il link del sito in pvt così vedi?
Fai prima a vedere che io a spiegartelo! ge ge ge
-
ma certo
-
ciao a tutti, questo è il mio primo post.
Ho fatto la procedura descritta da paolobross e ha funzionato
il dubbio che mi rimane è questo:
al momento di abilitare URL rewriting mi dice:
rename web.config.txt to web.config and install IIS URL Revrite module
lo devo fare lo stesso anche se funziona tutto? a cosa serve questa operazione?
grazie..
-
Ciao Atlantotec, quello che segnali tu si riferisce al webserver microsoft (IIS), se hai seguito le istruzioni di paolobros è ti funziona tutto vuol dire che il suo sito sta su apache.
-
Ciao. Il problema è nel file .htaccess.
Lo hai innanzi tutto rinominato da htaccess.txt a .htaccess?
Una volta fatto questo aprilo e fai le seguenti modifiche:
Cerca la voce RewriteBase e modificala in RewriteBase /
Cerca la voce Options +FollowSymLinks e modificala anteponendo un cancelletto #Options +FollowSymLinks
Salva, chiudi e carica sul server.
Infine, sul pannello di controllo di Joomla io metto la spunta anche su "Use url rewriting"
Fammi sapere. Ciao
Nel mio file .htaccess non ci sono queste 2 voci, le ho aggiunte alla fine del file manualmente ma ancora non funziona... com'è possibile che abbia un file htaccess così stiminzito io??? :o ;D
Copio e incollo...
# Use PHP5.4 Single php.ini as default
AddHandler application/x-httpd-php54s .php
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName fotoh2o.it
AuthUserFile /home5/............/_vti_pvt/service.pwd
AuthGroupFile /home5/............../_vti_pvt/service.grp
RewriteBase /
#Options +FollowSymLinks
Tente grazie anticipati per l'aiuto.
-
ciao falchino78, a me nn sembra un htaccess di joomla, ti conviene ricaricare quello contenuto nel pacchetto di installazione della tua versione (lo trovi htaccess.txt) e rifare la procedura.
-
Grazie, provo e ti faccio sapere.
-
ciao falchino78, a me nn sembra un htaccess di joomla, ti conviene ricaricare quello contenuto nel pacchetto di installazione della tua versione (lo trovi htaccess.txt) e rifare la procedura.
Ho fatto come mi hai detto, in effetti il file originale ha decisamente più impostazioni. ma ora il sito mi da questo errore:
Your host needs to use PHP 5.3.1 or higher to run this version of Joomla!
[/size]
[/size]Io ho un po' di problemi ad accedere al mio sito in ftp perchè sono in cina e la vpn che uso non mi consente di utilizzare i client ftp, non visualizza il contenuto delle cartelle, ogni lavoro con ftp mi fa perdere tanto tempo.
[/size]Ti posto la nuova configurazione...
[/size]SetEnv PHPRC /home/youruser/public_html/php.ini
[/size]##
[/size]# @package Joomla
[/size]# @copyright Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
[/size]# @license GNU General Public License version 2 or later; see LICENSE.txt
[/size]##
[/size]##
[/size]# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
[/size]#
[/size]# The line just below this section: 'Options +FollowSymLinks' may cause problems
[/size]# with some server configurations. It is required for use of mod_rewrite, but may already
[/size]# be set by your server administrator in a way that dissallows changing it in
[/size]# your .htaccess file. If using it causes your server to error out, comment it out (add # to
[/size]# beginning of line), reload your site in your browser and test your sef url's. If they work,
[/size]# it has been set by your server administrator and you do not need it set here.
[/size]##
[/size]## Can be commented out if causes errors, see notes above.
[/size]#Options +FollowSymLinks
[/size]## Mod_rewrite in use.
[/size]RewriteEngine On
[/size]## Begin - Rewrite rules to block out some common exploits.
[/size]# If you experience problems on your site block out the operations listed below
[/size]# This attempts to block the most common type of exploit `attempts` to Joomla!
[/size]#
[/size]# Block out any script trying to base64_encode data within the URL.
[/size]RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
[/size]# Block out any script that includes a <script> tag in URL.
[/size]RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
[/size]# Block out any script trying to set a PHP GLOBALS variable via URL.
[/size]RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
[/size]# Block out any script trying to modify a _REQUEST variable via URL.
[/size]RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
[/size]# Return 403 Forbidden header and show the content of the root homepage
[/size]RewriteRule .* index.php [F]
[/size]#
[/size]## End - Rewrite rules to block out some common exploits.
[/size]## Begin - Custom redirects
[/size]#
[/size]# If you need to redirect some pages, or set a canonical non-www to
[/size]# www redirect (or vice versa), place that code here. Ensure those
[/size]# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
[/size]#
[/size]## End - Custom redirects
[/size]##
[/size]# Uncomment following line if your webserver's URL
[/size]# is not directly related to physical file paths.
[/size]# Update Your Joomla! Directory (just / for root).
[/size]##
[/size]RewriteBase /
[/size]## Begin - Joomla! core SEF Section.
[/size]#
[/size]RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
[/size]#
[/size]# If the requested path and file is not /index.php and the request
[/size]# has not already been internally rewritten to the index.php script
[/size]RewriteCond %{REQUEST_URI} !^/index\.php
[/size]# and the request is for something within the component folder,
[/size]# or for the site root, or for an extensionless URL, or the
[/size]# requested URL ends with one of the listed extensions
[/size]RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
[/size]# and the requested path and file doesn't directly match a physical file
[/size]RewriteCond %{REQUEST_FILENAME} !-f
[/size]# and the requested path and file doesn't directly match a physical folder
[/size]RewriteCond %{REQUEST_FILENAME} !-d
[/size]# internally rewrite the request to the index.php script
[/size]RewriteRule .* index.php [L]
[/size]#
[/size]## End - Joomla! core SEF Section.
:'(
-
Ok grazie, funziona tutto perfettamente,
l'errore sul php credo di averlo risolto utilizzando una stringa che ho trovato nel primo file htaccess che ho postato:
AddHandler application/x-httpd-php54s .php
Grazie a tutti.
-
Ciao, anch'io alle prese con questo problema,
e ci sto quasi rinunciando... :'(
Partiamo dall'inizio: CONFIGURAZIONI GLOBALI
- Suffisso URL NO
- [/size]Alias Unicode NO
[/size]
Ho cambiato il file htaccess
(tra l'altro ne ho trovati due nella cartella :o , un .htaccess che c'era già, e un htaccess.txt.
[/size]Ho preso il txt, l'ho scaricato, modificato le due voci secondo quanto indicato in questo articolo, che spiega in modo molto semplice e mette tutto il codice:
*****
edit: rimosso link a risorse esterne
(ho controllato e il mio codice è uguale)
[/size]Poi l'ho caricato (prima ho rinominato quello vecchio aggiungendoci "-originale" così non va perso, in caso serva ripristinarlo...)
Però se mi azzardo a toccare "Riscrivi URL SEF" mettendolo sul SI, succede che la home la vedo tranquillamente, ma appena vado in una voce di menù ecco la sorpresa:
[/size]Not FoundThe requested URL /informatica/blog was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.Può essere che il server su cui è il sito non l'accetta?
Come faccio a sapere di che tipo è il server che mi ospita? (Tipo: lo trovo nel pannello di controllo da qualche parte?)
Grazie a chi mi aiuta.. :-[
-
un .htaccess che c'era già, e un htaccess.txt.
prima regola della vita e del web: non toccare ciò che non conosci
ti ridordi di adamo ed eva? ecco.. tutto comincia da li..
-
Ciao CG Creazioni, è un problema di configurazione di alcuni provider
cerca nell'htaccess
#Options +FollowSymLinks
[/size]RewritaBase
[/size]
Prova a levare il commento a uno e metterlo all'altro (o viceversa a seconda di come lo trovi)
-
Grazie. Ma... ehm.. che "commento"?
Ti incollo qui sotto tutto il file (ci sono dati o password dentro? Nel caso lo cancello...)
------------------------------------------------------------------------
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##
##
# 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 base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.
## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects
##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##
RewriteBase /
## 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.
------------------------------------------------------------------------
I due punti che dici sono quelli in rosso, giusto?
Non ho capito però cosa devo togliere o mettere... Dici forse il # davanti? Si chiama commento?
O dici un'altra cosa?
-
sì, il cancelletto è commento, prova a invertirli.
-
Che grandeeeeeeeeee
ORA FUNZIONA TUTTOOOOOOOO!!! ;D
Dalla home stavolta riesco a scendere nei menù e negli articoli senza pagina di errore!!!
Che sollievo, grazie!!!!
E il tutto riuscendo finalmente ad attivare "Riscrivi URL SEF" su "SI".
Meraviglia! 8)
-
Perfetto, credo tu possa chiudere la discussione allora.
No, tu mi sa che nn puoi :)
Alla prossima
-
Io non ci sono riuscito, ho fatto tutto, e ancora mi riporta l'error nelle pagine, voglio precisare che il sito è installato in locale con xaamp, sarà questo ? so solo che ho fatto 1000 prove, niente da fare non funziona, mi da error nelle pagine, se qualcuno mi spiegasse almeno perchè...... :(
-
Dategli una occhiata voi ha questo codice, perchè io sto impazzendo......
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##
##
# 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 base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.
## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects
##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##
RewriteBase /
## 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.
-
x il l'htaccess in locale la configurazione può essere leggermente diversa, al tempo scrissi una guida te la mando in pm.
-
in locale?
non usatelo in locale htaccess non avrebbe alcun senso, se dovete inserire dei link per dei collegamenti usate pure quelli nativi purchè relativi, una volta nel server funzioneranno normalmente.
garantito al limone! ;)
-
56francesco ai ragione, infatti fatta la modifica del file .htaccess e mettere online il sito funziona tutto, grazie francesco, e ha te luketto, e un grazie a Joomla di esistere........... ;) si puo' chiudere grazie.