Salve a tutti, dopo vari tentativi ho trovato il codice .htaccess giusto per far si che la mia installazione di joomla, che è in una cartella della root, appaia direttamente dopo il nome dominio (es: da
www.dominio.it/joomla/index.php a
www.dominio.it/index.php )
le regole che ho seguito le ho trovate qui:
http://www.drichproductions.com/random-knowledge/rewrite-root-directory-subdirectory.phpfunziona tutto perfettamente ma ho un problema: non ho più accesso alle altre cartelle della root infatti mi da pagina 404 in tutte le altre dir.
( ho host su aruba quindi la prima riga è commentata)
htaccess in root:
#Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# Add trailing slash if path does not contain a period or end with a slash
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*)
http://www.sfogliamilano.it/$1/ [R=301,L]
#Change
http://yoursite.com to
http://www.yoursite.com (Optional)
RewriteCond %{HTTP_HOST} ^sfogliamilano.it$
RewriteRule ^/?(.*)$
http://www.sfogliamilano.it/$1 [R=301,L]
#Rewrites
http://www.yoursite.com/subdir to
http://www.yoursite.com/RewriteCond %{REQUEST_URI} !^/live
RewriteRule ^(.*)$ live/$1 [L]
#trailing slash enforcement
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !#
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$
http://sfogliamilano.it/$1/ [L,R=301]
RewriteRule ^(.*)\.html$ /report.php?var=$1
#RewriteRule ^live/(.+)$
http://www.sfogliamilano.it/$1 [R=301,L]
htaccess in joomla:
RewriteEngine On
RewriteBase /
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]
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*)
http://www.sfogliamilano.it/$1/ [R=301,L]
RewriteCond %{HTTP_HOST} ^sfogliamilano.it$
RewriteRule ^/?(.*)$
http://www.sfogliamilano.it/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^/live
RewriteRule ^(.*)$ live/$1 [L]
########## 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
qualcuno è in grado di aiutarmi ?
grazie in anticipo