Joomla.it Forum

Componenti per Joomla! => SEO => : antogrec 11 Jun 2010, 11:09:56

: Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: antogrec 11 Jun 2010, 11:09:56
[RISOLTO] Ciao Amici del forum,

sono ormai già due volte che mi capita questo increscente problema, soprattutto da quando uso Joomla! 1.5.17 e 1.5.18.

In pratica attivando dalla configurazione SEO di joomla Friendly URL su SI + uffisso agli URL su SI, il templete del sito sparisce completamente, sembra che la cartella del template è stata rimossa.

Appare solo il testo negli articolo, nei menù ecc... e sembra che ad essi non sia collegato nessun foglio di stile (CSS).

Mi appare proprio sul mio sito personale, che barba  >:(. (ora che mi ero deciso a realizzarlo), ma per dipiù mi appare sul sito di  un cliente, in cui mi ha chiesto specificatamente che gli serve un sito URL friendly.

Può dipendere dal server sul cui è ospitato?

Il file htaccess.txt non l'ho proprio toccato, tra l'altro alla voce  mod_rewrite ho la lasciato su NO.

Come posso risolvere?

Il sito a cui faccio riferimento (metteteci index.php) e : http://www.beccaccelucane.it/index.php che attualmente ha i tre comandi SEO tutti impostati sul NO.

Grazie in anticipo.
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: Trok 11 Jun 2010, 11:25:20
anche io avevo lo stesso problema. Hai rinominato  il file "htaccess.txt" in ".htaccess"? 
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: antogrec 11 Jun 2010, 11:34:40
anche io avevo lo stesso problema. Hai rinominato  il file "htaccess.txt" in ".htaccess"?

No non l'ho fatto, anche perchè da quando uso joomla (3 anni) e da quando uso questo hosting, non ne ho mai avuto la necessità.

Anzi a dire il vero mentre ti sto scrivendo, ho provato a rinominare il file e mi da errore 500.

: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: Trok 11 Jun 2010, 11:36:35
scusa, ma è fondamentale rinominare il file htaccess, leggi le guide.   Cmq come l'hai rinominato il file?   hai messo il punto davanti a htaccess?     =  .htaccess?
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: Trok 11 Jun 2010, 11:38:25
ah, ovviamente non rinominarlo con il block note in quanto non farà altro che rinominarlo come segue    .htaccess.txt... ma io consiglio di rinominarlo direttamente sul server.   Usa il tuo client FTP e rinominalo direttamente da li, il file una volta cambiato dovrebbe cambiare l'icona e dovrebbe funzionarti
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: antogrec 11 Jun 2010, 11:50:28
Ho fatto esattamento come hai detto tu.

Rinominati direttamente da Filezilla..
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: Trok 11 Jun 2010, 12:10:32
ma il contentuo del file? Cosa c'è scritto dentro?
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: antogrec 11 Jun 2010, 12:52:14
questo è quello che c'è nel htaccess


:
##
# @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
# @package Joomla
# @copyright Copyright (C) 2005 - 2010 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!
#
## Deny access to extension xml files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension xml files
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 /


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

: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: taolo 11 Jun 2010, 16:26:55
rinominarlo come segue    .htaccess.txt...

NO

.htaccess senza .txt
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: antogrec 11 Jun 2010, 16:49:54
NO

.htaccess senza .txt

Si l'ho fatto ragazzi.. non è quello il problema..

: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: antogrec 11 Jun 2010, 17:49:11
Nessuno dei Moderatori o dei tecnici joomla ha la soluzione ? Che faccio ora?
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: adottauncane 11 Jun 2010, 17:55:37
Ciao antogrec,
probabilmente devi commentare la riga 23, leggi questo articolo:
http://www.joomla.it/articoli-della-community/903-configurazione-seo-di-joomla-rendere-appetibile-il-sito-ai-motori-di-ricerca.html
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: antogrec 11 Jun 2010, 18:43:43
Ciao antogrec,
probabilmente devi commentare la riga 23, leggi questo articolo:
http://www.joomla.it/articoli-della-community/903-configurazione-seo-di-joomla-rendere-appetibile-il-sito-ai-motori-di-ricerca.html

Macchè non c'è verso.
Non mi resta che rivolgermi all'hosting. Però è strano.. prima hanno sempre funzionato, sullo stesso server, solo con la versione joomla 1.5.15.
Chissà se qualche altro sta avendo gli stessi problemi..

Uffa------- :'( :'( :'( :'( :'(
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: Trok 11 Jun 2010, 22:06:46
NO

.htaccess senza .txt

infatti avevo detto così. Senza txt :-D
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: antogrec 11 Jun 2010, 22:30:12
RISOLTO

Dunque ragazzi, ho risolto.

In pratica alla riga 59 del file .htaccess dove c'è:

:
#RewriteBase /
ho tolto il cancelletto diventando così:

:
RewriteBase /
dopo di che nelle impostazioni di SEO ho messo tutto su si... come segue.

Friendly URL per i motori di ricerca : SI
Utilizza mod_rewrite: SI
Aggiungi il suffisso agli URL: SI

Ed ecco risolto.   ;D ;D ;D ;D
: Re:Friendly URL su SI + uffisso agli URL su SI e si perde completamente il template
: Trok 12 Jun 2010, 09:32:01
ok mettere tutto su SI era ovvio per attivare tutto, ma a me funziona anche senza togliere il #. :-D
Cmq su alcuni server se non si ha il sito in sottodirectory, bisogna togliere l'#, meno male tutto risolto