-
htaccess e componenti
Salve a tutti!
Sul mio sito ho installato Ninja Syndicator per la gestione del flusso dei feed. Per funzionare, questo componente richiede che nel file .htaccess siano cancellate le seguenti righe:
Codice:
# # av:php5-engine
AddHandler av-php53 .php
Se elimino questo codice, viene bloccato il funzionamento dei componenti Akeeba.
Qualcuno ha già avuto lo stesso problema e trovato una soluzione, oppure ci sono consigli?
Grazie!
-
ciao, se elimini quel codice che serve per caricare la versione php 5.3 di altervista tutte le estensioni che necessitano di quella versione di php smetteranno di funzionare, come appunto akeeba backup, Ninja Syndicator che problema ti da con il codice di av per il php 5.3? ti ristituisce qualche errore?
-
Ninja Syndicator funziona, ma, una volta creato un feed, il link restituisce un errore 500 dovuto alle impostazioni htaccess. Eliminando le righe incriminate la pagina dei feed vene correttamente visualizzata.
-
l'htaccess.txt di joomla lo hai rinominato? prova a postare il codice del tuo .htaccess
-
Il file non è .txt, ma è stato rinominato correttamente in .htaccess.
Il codice contenuto è il seguente:
Codice:
# # av:Toolbar
SetEnv AV_TOOLBAR 1
# av:AntiHotlink
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} \.(gif|jpe?g|png)$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9\-\.]*)giorgiosonnante\.altervista\.org
RewriteCond %{REQUEST_URI} !^\/_altervista_ht\/
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9\-\.]+)google\.
RewriteRule .*$ http://hl.altervista.org/split.php?http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
# AntiHotlink
# # av:php5-engine
AddHandler av-php53 .php
ErrorDocument 404 /
L'ultima riga serve per far funzionare il componente ReDJ.
-
ciao, quello contiene solo i codici di altervista ma non contiene il codice del file htaccess di joomla, posto l'htaccess di jomla correttamente modificato cioè:
La riga Options +FollowSymLinks commentata e diventa #Options +FollowSymLinks
La riga #RewriteBase / decommentata e diventa RewriteBase /
ed in piu i codici che hai sul tuo htaccess: toolbar altervista, AntiHotlink, e php 5.3
Codice:
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##
##
# 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
## 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 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.
## 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 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.
# # av:Toolbar
SetEnv AV_TOOLBAR 1
# av:AntiHotlink
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} \.(gif|jpe?g|png)$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9\-\.]*)giorgiosonnante\.altervista\.org
RewriteCond %{REQUEST_URI} !^\/_altervista_ht\/
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9\-\.]+)google\.
RewriteRule .*$ http://hl.altervista.org/split.php?http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
# AntiHotlink
# # av:php5-engine
AddHandler av-php53 .php
ErrorDocument 404 /
Provalo cosi dovrebbe funzionare Ninja Syndicator, se non sono gia attive attiva le impostazioni seo dal pannello di controllo joomla
-
Circa un anno fa ho provato a inserire questo codice in .htaccess, ma ebbi un po' di problemi (forse perché era attivo il "Riscrivi URL SEF"?): insomma, il sito si bloccava.
Ad ogni modo, grazie per il codice postato e per l'aiuto che mi stai dando. Ho modificato .htaccess, ma il problema permane, come puoi vedere tu stesso dal link che dovrebbe mostrare i feed creati da Ninja:
http://giorgiosonnante.altervista.or...d=1&format=raw
Per completezza, le impostazioni SEO sono le seguenti:
Attiva URL SEF: Sì
Riscrivi URL SEF: No (per altri motivi deve essere settato così)
Suffisso URL: Sì
Alias Unicode: Sì.
-
l'htaccess di joomla su altervista non funziona se non vengono applicate le 2 modifiche che ti ho scritto sopra per questo il sito si bloccava, se hai inserito quello postato da me prova ad attivare Riscrivi URL SEF se nemmeno cosi funziona non so cosa possa essere prova ad aprire un topic sul forum di joomla.it qualche esperto ti aiuterà sicuramente
-
Come supponevo, niente da fare.
Proverò su joomla.it.
Grazie dell'aiuto!
-
giorgiosonnate inserisci questo nel tuo file .htaccess
Codice PHP:
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/component/) [OR]
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
# # av:Toolbar
SetEnv AV_TOOLBAR 1
# av:AntiHotlink
RewriteCond %{REQUEST_URI} \.(gif|jpe?g|png)$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9\-\.]*)giorgiosonnante\.altervista\.org
RewriteCond %{REQUEST_URI} !^\/_altervista_ht\/
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9\-\.]+)google\.
RewriteRule .*$ http://hl.altervista.org/split.php?http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
# AntiHotlink
# # av:php5-engine
AddHandler av-php53 .php
ErrorDocument 404 /
Se non funziona prova a commentare l'ultima riga (ovvero ErrorDocument).
Inoltre ti informo che la configurazione sef di joomla che puoi configurare nel pannello di controllo non produce errori (salvo la voce dell'uso del mod_rewrite) nella configurazione o nel sito. In altre parole puoi avere il file .htaccess nella root del sito e le sef disabilitate, non succede nulla.
-
Il codice consigliato non dà risultati; la cancellazione dell'ultima riga nemmeno (ma tra l'altro impedisce il funzionamento di ReDJ, troppo importante per il redirect e per il posizionamento SEO).