Joomla.it Forum
Componenti per Joomla! => SEO => : danimaz 10 Dec 2008, 17:32:07
-
Buongiorno,
ho un sito con joomla 1.5.8 in una sottocartella /uisp su server linux
- Link, temporaneamente eliminato -
Ho provato ad attivare il SEO
Friendly URL per i motori di ricerca Si
Utilizza mod_rewrite Si
Aggiungi il suffisso agli URL Si
Ho modificato e rinominato .htaccess
così:
##
# @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 /uisp
########## 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
funziona tutto ma non "vede" più il template.
Ho provato allora ad installare sh404SEF ma senza .htaccess non funziona e con htaccess dà lo stesso problema.
Qualcuno mi può aiutare? Il sito è - Link al momento eliminato - (adesso non SEF)
Grazie
-
hai provato con un template diverso? Potrebbe anche darsi che il problema lo crei il template
-
Senti aspetta un attimo. C'è qualcosa che non funziona. Ti spiace se, al momento elimino il link che hai messo? Il mio firewall mi segnala problemi
-
In ogni caso, credo che il tuo problema stia nei percorsi.
l'indirizzo del tuo sito deve essere completo di sottocartella, infatti.
Nella cartella principale c'è altro sito (stessa unione sportiva, ma altro sito).
Ho la sensazione, quindi, che quando assegni il template, lo assegni al sito indirectory principale e non a quello in sottocartella.
Ovviamente, l'indirizzo del back end della sottocartella, deve essere ...../uisp/administrator. Io li vedo un template non di default. In root, invece, ho visto altro template: il template di default di joomla
No, mentre rispondevo la situazione è cambiata. In entrambi ci sono gli stessi template, ma dal sito in root gli articoli puntano al sito in sottocartella ...
M'è venuto il mal di mare. In htaccess hai messo la sottocartella, l'indirizzo che hai postato è senza la sottocartella ... non è meglio che, prima di ogni cosa, ci comprendiamo su ciò che vuoi fare?
-
Probabilmente mentre guardavate il sito ho fatto alcune prove e il mal di mare è dovuto a quello che ho fatto io.
Sorry!
Comunque:
- ho messo temporaneamente il template rhuk_milkyway e andava bene!!!
- ho installato il plugin joomSEO e intanto ho fatto un bel passo avanti invertendo title e nome sito
QUindi il casino è dato dal template, sigh...
Chissà se posso fare qualcosa.
Nella root c'è un index.html di reindirizzamento, che permette di "mascherare" il path nella barra degli indirizzi, che è questo:
<!-- saved from url=(0022)http://internet.e-mail -->
<html>
<head>
<title>UISP Bologna Unione Italiana Sport per tutti</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<frameset rows="0,*" frameborder="NO" border="0"
framespacing="0">
<frame name="topFrame" scrolling="NO" noresize
src="pagina.htm" marginwidth="0" marginheight="0" >
<frame name="mainFrame" src="http://www.uispbologna.it/uisp">
</frameset>
<noframes><body bgcolor="#FFFFFF">
</body></noframes>
</html>
Grazie mille!
-
ma se usassi meno orpelli, sarebbe molto meglio anche per il tuo sito, ritengo.
Allora, prima di tutto, il charset della spash page (index.html in root) è iso8859-1, mentre tutto il resto è utf8.
Secondo, perché non fai un bel backup di tutto, metti tutto in root, modifichi il configuration.php e l'htaccess e vedi come funziona?
Può anche darsi che tutto funzioni senza alcun tipo di problema