Back to top

Autore Topic: Joomla su aruba  (Letto 4601 volte)

Offline graficaverbavolant

  • Nuovo arrivato
  • *
  • Post: 4
    • Mostra profilo
Joomla su aruba
« il: 25 Giu 2008, 12:18:57 »
Buongiorno
Premetto che non conosco nulla di php
In joomla sostituendo e rinominando il file .htaccess, attivando il seo nel back end del sito, l'home page funziona, mentre non mi funzionano più i link interni e ho come risultato errore 404
Questo perchè in joomla il mod_rewrite in hosting linux è parzialmente attivo poichè alcune opzioni, come la FollowSymbLinks, non sono consentite e, se utilizzate, restituiscono un Internal Server Error.
Come posso bypassare questo problema?
Ovvero come posso quindi su aruba riscrivere gli URL dinamici in URL statici?
Vi allego copia del mio .htaccess
Dite che c'è qualche errore già qui?
Ringrazio tutti anticipatamente
Buona giornata
 

##
# @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z 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


# 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


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

Offline ramses_2th

  • Global Moderator
  • Instancabile
  • ********
  • Post: 4067
  • Sesso: Maschio
    • Mostra profilo
Re: Joomla su sgaragnao
« Risposta #1 il: 26 Giu 2008, 11:22:45 »
Ciao Graficaverbavolant, benvenuto nel forum

dunque cerchiamo di capire i cosa abbiamo a disposizione.

1) Versione Joomla ?
2) Seo utilizzato ( interno o applicazione esterna ?)

prova a modificarlo in questo modo

##  Can be commented out if causes errors, see notes above.
## Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On


#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla!/MamboDirectory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]       ##optional - see notes##
# RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
# RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section



########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF,

404SEFx, SEF Advance, etc
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]       ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section

ciao

Offline graficaverbavolant

  • Nuovo arrivato
  • *
  • Post: 4
    • Mostra profilo
Re: Joomla su sgaragnao
« Risposta #2 il: 26 Giu 2008, 15:44:18 »
Ciao
grazie per i consigli
ma purtroppo non funziona ancora.

Ecco altre info:
Ho l'ultima versione di Joomla, la 1.5
Ho rinomimato in .htaccess, l'ho commentato così come indicato in tanti post
Nel momento in cui attivo la prima voce del seo interno "...url friendly..." le pagine del sito, tranne la home che continua a funzionare link esterni compresi, danno errore http 404.
C'è da dire che le stringhe si convertono in statiche, ma le pgg non sono visualizzate. (tra l'altro è tutto rallentato)

Allora ho installato un componente seo esterno Sh404, l'ho  installato ed attivato. L'unica cosa che cambia è che la pagina di errore ha una grafica diversa.

Cos'altro posso fare? L'assistenza di aruba dice che con joomla i problemi di rewrite sono facilmente bypassabili. Più facile a dirsi che a farsi.

Ringraziando tutti anticipatamente colgo l'occasione
per augurarvi buona giornata e buon lavoro.

Offline stiantoswork

  • Appassionato
  • ***
  • Post: 323
  • Sesso: Maschio
  • :)
    • Mostra profilo
Re: Joomla su sgaragnao
« Risposta #3 il: 26 Giu 2008, 16:46:39 »
Buongiorno
Premetto che non conosco nulla di php
In joomla sostituendo e rinominando il file .htaccess, attivando il seo nel back end del sito, l'home page funziona, mentre non mi funzionano più i link interni e ho come risultato errore 404
Questo perchè in joomla il mod_rewrite in hosting linux è parzialmente attivo poichè alcune opzioni, come la FollowSymbLinks, non sono consentite e, se utilizzate, restituiscono un Internal Server Error.
Come posso bypassare questo problema?
Ovvero come posso quindi su sgaragnao riscrivere gli URL dinamici in URL statici?
Vi allego copia del mio .htaccess
Dite che c'è qualche errore già qui?
Ringrazio tutti anticipatamente
Buona giornata
 

##
# @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z 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


# 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


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


Prova a commentare la riga che ti ho evidenziato in rosso
P.IVA: 02114920461  Consulenza Informatica a Lucca - www.stiantos.com
www.consulenti-ict.it [Staff]
Organizzatore Toscana Joomla Party |Non hai p.iva ma ti proponi nel forum?

Offline graficaverbavolant

  • Nuovo arrivato
  • *
  • Post: 4
    • Mostra profilo
Re: Joomla su sgaragnao
« Risposta #4 il: 30 Giu 2008, 15:37:52 »
Buongiorno
ho aspettato di nuovo prima di disturbarvi,
spulciando praticamente tutta la rete...
ho commentato come da vs. indicazioni ma... niente.
Se attivo "... friendly user ..." continua a darmi errore 404
pur rinominandomi la stringa.
Appena disattivo " friendly user " tutto funziona correttamente.
Cosa altro posso provare a fare?
grazie

Offline graficaverbavolant

  • Nuovo arrivato
  • *
  • Post: 4
    • Mostra profilo
Re: Joomla su sgaragnao
« Risposta #5 il: 30 Giu 2008, 18:37:28 »
Buonasera ho risolto il problema
Rinominavo il file htaccess da blocco note
Quindi l'estensione rimaneva sempre .txt
Rinominando in dreamweaver si cambia l'estensione ed il problema, dopo aver commentato il file non si verifica più.
Scusate tutti per il disturbo.
Buona serata

Offline stiantoswork

  • Appassionato
  • ***
  • Post: 323
  • Sesso: Maschio
  • :)
    • Mostra profilo
Re: Joomla su sgaragnao
« Risposta #6 il: 30 Giu 2008, 22:05:51 »
Buonasera ho risolto il problema
Rinominavo il file htaccess da blocco note
Quindi l'estensione rimaneva sempre .txt
Rinominando in dreamweaver si cambia l'estensione ed il problema, dopo aver commentato il file non si verifica più.
Scusate tutti per il disturbo.
Buona serata
Nessun problema, l'importante è che sia tutto risolto. ;)
P.IVA: 02114920461  Consulenza Informatica a Lucca - www.stiantos.com
www.consulenti-ict.it [Staff]
Organizzatore Toscana Joomla Party |Non hai p.iva ma ti proponi nel forum?

 



Web Design Bolzano Kreatif