Joomla.it Forum
Non solo Joomla... => Sviluppo => : ww 08 Dec 2014, 12:56:42
-
Buongiorno
volevo sapere come si fa a capire quando ci sono link "fittizi" su joomla ( 2.5) come ci si arriva.
mi spiego meglio.[size=78%]Avevo un sito in remoto, e cliccando per fare login mi apriva una tipo www.miosito.it/profile-view.htm[/size]
ho portato il sito in locale e più o meno funziona ma se provo [/size]a cliccare per fare login mi da errore: "errore 500 ..etc"...se provo a mettere io direttamente il link ossia "locahost/miosito/[size=78%]profile-view[/size].htm" ovviamente non mi apre nulla perchè quella pagina ([size=78%]profile-view[/size].htm)non è reale...infatti de cerco il file non esiste.[size=78%]
[/size]insomma..se potete spiegarmi meglio questa cosa per vcapire perchè in locale non riesco ad accedere a questa pagina.[size=78%]
[/size]
[/size]grazie a tutti[size=78%]
-
Ciao,
probabilmente dipende dal SEO che deve essere settato in modo differente
Se lo disabiliti i links dovrebbero essere entrambi identici ed accessibili.
Ciao!
-
per la risoluzione degli url delle pagine 'virtuali': manca il file .htaccess o lo stesso non è processato.
-
grazie, sistemado SEO effettivamente alcuni ora vanno.
ma come mai questi indirizzi virtuali in locale non mi funzionano?
ache perchè nonostante la modifica seo non tutti vanno ancora.
come faccio a verificare che .htaccess sia processato?
grazie
-
Locale e server sono due ambienti diversi e quindi se vuoi usare il SEO devi avere due configurazioni diverse.
Comunque abilitare il SEO in locale non serve a nulla, lascialo disabilitato, lascia il file come htaccess.txt.
Il SEO usalo solo sul server.
Ciao!
-
grazie
come faccio a verificare che .htaccess sia processato?
-
Se hai un link tipo
sito/news/441-la-veia-sky-race-a-parma-con-i-vertici-fisky
viene processato
se hai un link tipo
index.php?option=com_content&view=category&layout=blog&id=45&Itemid=106
vuol dire che non viene processato
Ma perdonami, a cosa ti serve?
-
chiedevo perchè mmleoni ha scritto
"per la risoluzione degli url delle pagine 'virtuali': manca il file .htaccess o lo stesso non è processato."
grazie
:-)
disattivando i seo tutti i link funzionano tranne uno, c'è un modo per capire quale dovrebbe essere la pagina che dovrebbe caricare?
questo link è del tipo
localhost/miosito/vendite
sono andata a vedere nel pannello di controllo il pulsante nel menù, il pulsante "vendite" e vedo che è settato come urlesterno ma effettivamente non è stato settato il link.
Ho notato che un componente (una galleria) è settata in modo tale che deve apparire quando si clicca sul pulsante "vendite", infatti in remoto, cliccando su vendite, si apre la pagina in cui c'è anche questa galleria...ma non capisco perchè in locale non va, non so c'è qualche modo per capire...grazie
-
non va perché è inserito come link a /miosito/vendite, quindi senza .htaccess, che serve appunto a gestire questi tipi di indirizzi, non può essere risolto.
cambialo in una voce di menù di tipo galleria e tornerà a funzionare.
ciao
-
se però lo metto come voce di galleria mi fa vedere solo la galleria, in realtà la pagina che vedo in remoto è composta sopra dalla gallarie(che è un modulo) più altre cose sotto...che non riesco a trovare...
non posso sistemare l' .htaccess per fargli gestire questo indirizzo?
grazie
-
ma lo puoi usare in locale? hai il mod rewrite in apache?
-
io ho nginx, ho modificato l'.htaccess impostando ad on il flag_error e ho visto che ho gli errori in output per cui suppongo venga processato.
incollo il mio .htaccess non si se così riuscite ad aiutarmi :(
grazie
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2014 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.
# Displaying PHP errors
#test
#php_flag display_errors on
#php_flag display_errors off
#php_value error_reporting 6143
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 /weblocale
## 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.
-
le regole di mod_rewrite non sono compatibili con nginx, vedi
https://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs_on_Nginx
per la serie: ma sì, facciamoci male :-X
-
proprio ora stavo leggendo questo, però io il sito l'ho preso da remoto, quindi anche l'.htaccess e sul provider c'è anche nginx, quindi suppongo sia settato correttamente.
grazie
-
al limite nginx.conf, o il contenuto della cartella /conf altrimenti chiedere al provider. .htacces è un file di apache ed è ignorato da nginx ...