Ho seguito le numerose discussioni e tutorial sull'argomento, ma ancora non risolvo il problema della mia installazione di Joomla in una subdirecotry rimuovendo quest'ultima dall'URL, per cui vi chiedo di avere ancora un po' di pazienza ...
La versione è la 3.2.1 e l'installazione è nella directory /joomla/ del
mio sito.
Nella root ho il seguente file .htaccess
Options +FollowSymLinks
RewriteEngine On
# What to add to domain.com for .htaccess
RewriteBase /
# Add trailing slash if path does not contain a period or end with a slash
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*) http://domain.com/$1/ [R=301,L]
#Change http://domain.com to http://www.domain.com
RewriteCond %{HTTP_HOST} ^domain.com$
RewriteRule ^/?(.*)$ http://www.domain.com/$1 [R=301,L]
# Rewrite of subdir to rootdir
RewriteCond %{REQUEST_URI} !^/joomla
RewriteRule ^(.*)$ joomla/$1 [L]
Nel file /joomla/configuration.php ho cambiato la variabile
public $live_site = 'http://www.domain.com/';
Nella subdirectory /joomla/ ho il seguente file .htaccess
#Options +FollowSymLinks commented out because this is set in the root .htaccess
## Mod_rewrite in use.
RewriteEngine On
## Begin - Rewrite rules to block out some common exploits.
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
## End - Rewrite rules to block out some common exploits.
# Update Your Joomla! Directory (just / for root).
RewriteBase /joomla
## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
AddHandler application/x-httpd-php53 .php .php5 .php4 .php3
<IfModule mod_expires.c>
ExpiresActive On
<FilesMatch "\.(pdf|flv|jpe?g|png|gif|js|css|swf|cur|ico)$">
Header set Cache-Control "public"
ExpiresDefault "access plus 1 month"
</FilesMatch>
</IfModule>
Il problema che ho è che le pagine del sito vengono visualizzate correttamente inserendo l'URL senza la directory nel path, ma questa viene reinserita utilizzando i link del menu principale, con conseguente errore 404
Qualche suggerimento?