Joomla.it Forum
Componenti per Joomla! => SEO => : ant89 24 Oct 2013, 17:38:20
-
Come da titolo vorrei impostare il SEO in questo sito
ho iniziato attivando i 3 settaggi su SI di: attiva URL SEF - Riscrivi URL SEF - Suffisso URL, ho modificato il file htaccess
ora nel sito mi da questo problema: la home la vedo bene, nomesito.it
appena clicco su altre pagine mi da "404 not found" nomesito.it/chisiamo.html
mi aiutate a capire dove sta il problma? grazie mille
ps: le uniche pagine che escono sono Privacy e Note Legali.
-
ciao, hai rinominato il file htaccess.txt in .htaccess tramite ftp? se anche dopo averlo rinominato riscontri l'errore apri l'htaccess e fai queste due modifiche
- cerca la riga Options +FollowSymLinks e commentala falla diventare #Options +FollowSymLinks
- cerca la riga #RewriteBase / e decommentala falla diventare RewriteBase / se joomla è in una sottodirectory RewriteBase /nomecartella
-
ciao, hai rinominato il file htaccess.txt in .htaccess tramite ftp? se anche dopo averlo rinominato riscontri l'errore apri l'htaccess e fai queste due modifiche
- cerca la riga Options +FollowSymLinks e commentala falla diventare #Options +FollowSymLinks
- cerca la riga #RewriteBase / e decommentala falla diventare RewriteBase / se joomla è in una sottodirectory RewriteBase /nomecartella
grazie per la risposta,
Non so per quale motivo, Options +FollowSymLinks è già commentata. E a RewriteBase ho già tolto il commento.
come faccio a capire dov'è joomla?
-
collegandoti in ftp se i file non sono nella cartella principale dove devono essere caricati, dipende dall'host alcuni www altri html ecc.. ma si trovano in html/nomecartella allora prova ad aggiungere nomecartella dopo lo / a RewriteBase /, mi sembra strano comunque che l'htaccess originale di joomla lo trovi già con quelle modifiche
Edit: il tuo hosting prevede anche dal suo pannello di controllo di attivare il php 5.3 e il file php.ini adatto a joomla se non lo hai già fatto fallo, non penso risolva questo problema ma comunque joomla "lavora" meglio
-
collegandoti in ftp se i file non sono nella cartella principale dove devono essere caricati, dipende dall'host alcuni www altri html ecc.. ma si trovano in html/nomecartella allora prova ad aggiungere nomecartella dopo lo / a RewriteBase /, mi sembra strano comunque che l'htaccess originale di joomla lo trovi già con quelle modifiche
sono nella cartella principale,
A me è strano che non visualizza le pagine facendo le modifiche.
-
prova questo htaccess è quello originale di joomla con le modifiche già fatte se non funziona non so cosa altro potrebbe essere, magari qualcuno esperto ti darà la risposta, leggi anche l'edit che ho fatto al post precedente
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2012 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.
-
prova questo htaccess è quello originale di joomla con le modifiche già fatte se non funziona non so cosa altro potrebbe essere, magari qualcuno esperto ti darà la risposta, leggi anche l'edit che ho fatto al post precedente
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2012 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.
potrebbe essere che quando scrivo nel FTP .htaccess si modifica l'estensione. da documento di testo a file htacces.
-
sinceramente non ho capito, intendi quando lo rinomini? per rinominarlo devi togliere .txt ed aggiungere il . (punto) prima del nome, deve diventare .htaccess per fare le modifiche sul file le puoi fare dalla gestione file dell'hosting o portando in locale (sul tuo pc) il file e modificandolo con un editor di testo
-
sinceramente non ho capito, intendi quando lo rinomini? per rinominarlo devi togliere .txt ed aggiungere il . (punto) prima del nome, deve diventare .htaccess per fare le modifiche sul file le puoi fare dalla gestione file dell'hosting o portando in locale (sul tuo pc) il file e modificandolo con un editor di testo
esattamente, però come dicevo, quando la modifico da htaccess.txt a .htaccess l'estensione cambia. e cambia anche l'icona. (da icona blocco note) a (icona bianca)
potrebbe essere questo il problema?
-
no è proprio cosi che deve essere perche non sarà piu un file txt ma un file htaccess
-
no è proprio cosi che deve essere perche non sarà piu un file txt ma un file htaccess
ok. ora se provi ad entrare nel sito. esce un errore.
ho scritto .htaccess
esce 500 internal server error. E non riesco ad entrare neanche nel pannello di controllo. come faccio ora?
-
rinominalo nuovamente, ma stai modificando il file htaccess che si trova nella stessa cartella dei file di joomla?
-
rinominalo nuovamente, ma stai modificando il file htaccess che si trova nella stessa cartella dei file di joomla?
si è quello che sta appena apro la cartella di joomla. Giusto?
-
si è quello che sta appena apro la cartella di joomla. Giusto?
si, se lo rinomini di nuovo in .txt il sito torna a funzionare? sinceramente non so cosa altro potrebbe essere magari qualche esperto legge e ti da la soluzione, nel frattempo hai impostato dal pannello dell'hosting il file php.ini adatto a joomla e il php 5.3?
Edit: non è che per caso utilizzi qualche componente per il seo?
-
si, se lo rinomini di nuovo in .txt il sito torna a funzionare? sinceramente non so cosa altro potrebbe essere magari qualche esperto legge e ti da la soluzione, nel frattempo hai impostato dal pannello dell'hosting il file php.ini adatto a joomla e il php 5.3?
Edit: non è che per caso utilizzi qualche componente per il seo?
si, se lo rinomino in .txt e setto tutto su NO, torna a funzionare. si le ho impostate php.ini e php 5.3.
non ho componenti seo.
-
mi dspiace come ti ho detto non riesco a capire cosa altro potrebbe essere, quello della modifica Options +FollowSymLinks e RewriteBase sono le uniche cose che si devono fare per far funzionare correttamente il seo sul tuo hosting, ma anche su altri, magari qualcuno che ha avuto lo stesso problema legge e ti sa rispondere
-
mi dspiace come ti ho detto non riesco a capire cosa altro potrebbe essere, quello della modifica Options +FollowSymLinks e RewriteBase sono le uniche cose che si devono fare per far funzionare correttamente il seo sul tuo hosting, ma anche su altri, magari qualcuno che ha avuto lo stesso problema legge e ti sa rispondere
grazie mille