buongiorno a tutti,
da qualche giorno ho l'esigenza di eseguire dei controlli SEO su un sito che contiene anche Virtuemart...anche se non credo che sia quello il problema...
in poche parole quando attivo il componente SH404SEF a parte la home page TUTTE le altre mi vanno in errore 404.
Ho fatto un sacco di prove ma non ne vengo a capo, ecco i passi che ho fatto:
- innanzitutto ho installato la versione a pagamento (l'ultima) del componente l'hoster dov'è installato il sito è MisterDomain dove c'è scritto chiarissimo che MOD_REWRITE è attivo e funzionante.
- ho editato (credo correttamente) il file htaccess.txt in .htaccess, di seguito il testo del file:
| Codice: : |
## Can be commented out if causes errors, see notes above.
Options +FollowSymlinks
#
# mod_rewrite in use
RewriteEngine On
Rewritebase /arthena
########## 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)
#
#Order allow,deny
#Deny from all
#Satisfy all
#
## End of deny access to extension xml files
# 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 data within the URL
#RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a tag in URL
#RewriteCond %{QUERY_STRING} (|%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
########## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
########## End - Custom redirects
# 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
#
#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 root, or for an extensionless URL, or #the
# requested URL ends with one of the listed extensions
#RewriteCond %{REQUEST_URI} (/[^.]*|\.(php|html?|feed|pdf|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
########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF # extension -
#
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
|
- ho seguito la guida filmata di Roberto Chimenti presente nel corso di Virtuemart per la vers. 1.1.x
purtroppo non riesco ad avere nessun risultato, tutte le pagine del sito mi vanno in errore 404, a parte la homepage.
poi ho cominciato a fare alòtre prove:
- ho riattivato i tre box del SEF nativo di Joomla che la guida mi diceva di disabilitare.
nessun risultato
- disabilito i box, riabilito SH404SEF ma vado a far saltare la riscrittura degli URL relativi a VIRTUEMART.
risultati ottenuti: solo se richiamo i _link_ relativi a VM (che non sono stati cambiati), tutti gli altri _link_ portano al fatidico errore 404.
insomma non riesco a risolvere...qualcuno ne sa qualcosa?
devo per forza cambiare componente SEF? (se così fosse mi girano un pochino...avrei buttato 27 euro, certo, non miei...ma sono sempre buttati anche se sono pochi).
spero in un vostro aiuto.
ciao.