[Guida] JOOMLA 1.0.13 e 1.5 mod_rewrite SEO, .htaccess e ARUBA FUNZIONA! - Joomla! Forum - community, help and support


salve tutti, sono fabrizio e sono nuovo, ma dopo aver un po' smanacciato sono riuscito far funzionare joomla 1.5 su aruba abilitando il sef ed il file .htaccess che dà sempre problemi.

ora io spero di aiutare qualcuno, e visto che la 1.5 adesso è stabile, molti passeranno o utilizzeranno direttamente la nuova versione.

praticamente questo è quello da fare:
1. caricare il sito via ftp ed installare il cms
2. modificare il file htaccess.txt in un qualunque editor testuale (che non sia word  :d )
3. copiare tutto quello che posto qui sotto, oppure individuare le differenze con il vostro htaccess.txt
----------------------------------------------------------------------------------------------------------------

code: select all

##
# @version $id: htaccess.txt 9795 2008-01-02 11:33:07z rmuilwijk $
# @package joomla
# @copyright copyright (c) 2005 - 2008 open source matters. rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html gnu/gpl
# joomla! free software
##


#####################################################
#  read if choose use file
#
# line below section: 'options +followsymlinks' may cause problems
# server configurations.  required use of mod_rewrite, may already
# set server administrator in way dissallows changing in
# .htaccess file.  if using causes server error out, comment out (add # to
# beginning of line), reload site in browser , test sef url's.  if work,
# has been set server administrator , not need set here.
#
# use 1 of 2 sef sections follow.  lines can uncommented
# (and used) have 1 #.  lines 2 #'s should not uncommented
# in section don't use, lines should start #
#
#####################################################

##  can commented out if causes errors, see notes above.
# options +followsymlinks

#
#  mod_rewrite in use

authtype basic
rewriteengine on


#  uncomment following line if webserver's url
#  not directly related physical file paths.
#  update joomla! directory (just / 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 block out common exploits
## if experience problems on site block out operations listed below
## attempts block common type of exploit `attempts` joomla!

# block out script trying set mosconfig value through url
rewritecond %{query_string} mosconfig_[a-za-z_]{1,21}(=|\%3d) [or]
# block out script trying base64_encode crap send via url
rewritecond %{query_string} base64_encode.*\(.*\) [or]
# block out script includes <script> tag in url
rewritecond %{query_string} (\<|%3c).*script.*(\>|%3e) [nc,or]
# block out script trying set php globals variable via url
rewritecond %{query_string} globals(=|\[|\%[0-9a-z]{0,2}) [or]
# block out script trying modify _request variable via url
rewritecond %{query_string} _request(=|\[|\%[0-9a-z]{0,2})
# send blocked request homepage 403 forbidden error!
rewriterule ^(.*)$ index.php [f,l]

########## end - rewrite rules block out common exploits


ovviamente il file va salvato e caricato sul server

4. dal programma ftp rinominare il file htaccess.txt in .htaccess , il file dovrebbe diventare nascosto/invisibile se nel vostro client ftp non avete abilitato la visualizzazione dei file nascosti

5. andare nel pannello di amministrazione joomla e poi su configurazione e dalla pagina sito sulla destra mettere "sì" tutte le voci sotto il riquadro "configurazione seo".

tutto fatto. per quanto riguarda chmod io li ho lasciati com'erano ma dato il mio particolare programma ftp sotto mac osx, credo che vadano messi su 755.

spero di aiutare molte persone, ancora sto testando il funzionamento ma sui dati di esempio sembra funzionare molto bene!

alla prossima!

grande! :)





Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???