Back to top

Autore Topic: This webpage has a redirect loop  (Letto 2278 volte)

Offline 01Danny

  • Esploratore
  • **
  • Post: 141
    • Mostra profilo
This webpage has a redirect loop
« il: 08 Mar 2014, 14:51:05 »
Ciao a tutti,


Sto cercano di ottimizzare questo sito link in modo che sia seo friendly.


Come prima cosa sono andato nelle impostazioni generali e ho messo su yes "Search Engine Friendly URLs" e "Use URL rewriting" per avere delle url pulite ma ricevo errore "This webpage has a redirect loop".


Ho cercato un pò su internet ma non riesco a capire che succede.


Qualche suggerimento?


Grazie mille! :D


Offline 01Danny

  • Esploratore
  • **
  • Post: 141
    • Mostra profilo
Re:This webpage has a redirect loop
« Risposta #2 il: 08 Mar 2014, 15:08:50 »
Ho provato tutto ma ancora niente.


In pratica ho "use url rewriting" attivo ma se provo ad attivare "Search Engine Friendly URLs" mi da sempre errore This webpage has a redirect loop.


Questo è il mio .htaccess, magari può aiutare per la soluzione:





##
# @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.


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.



Grazie mille

Offline maicolstaip

  • Global Moderator
  • Instancabile
  • ********
  • Post: 17623
  • Sesso: Maschio
    • Mostra profilo
Re:This webpage has a redirect loop
« Risposta #3 il: 08 Mar 2014, 15:12:30 »
Devi leggere bene i links, c'è scritto tutto.

Comunque se il sito è in root, sicuro che devi decommentare

# RewriteBase /

Ciao!
Non si risponde a PM tecnici. Postate sul forum. Grazie.

Offline 01Danny

  • Esploratore
  • **
  • Post: 141
    • Mostra profilo
Re:This webpage has a redirect loop
« Risposta #4 il: 08 Mar 2014, 15:24:03 »
Le guide postate erano abbastanza corte e facili da seguire, ho fatto tutto alla lettera ma niente.


Quando attivo "Search Engine Friendly URLs" mi da sempre errore This webpage has a redirect loop.




Se può essere d'aiuto il sito prima era su joomla 1.5 poi è stato uplodato a 2.5 in locale e poi trasferito sul dominio. (Magari può essere utile)




altre soluzioni?




Grazie

Offline maicolstaip

  • Global Moderator
  • Instancabile
  • ********
  • Post: 17623
  • Sesso: Maschio
    • Mostra profilo
Re:This webpage has a redirect loop
« Risposta #5 il: 08 Mar 2014, 15:37:50 »
Se hai fatto tutto bene con il file .htaccess, verifica nel file configuration.php i percorsi delle variabili

public $log_path = '';
public $tmp_path = '';
e lascia vuoto
public $live_site = '';

Ciao!
Non si risponde a PM tecnici. Postate sul forum. Grazie.

Offline 01Danny

  • Esploratore
  • **
  • Post: 141
    • Mostra profilo
Re:This webpage has a redirect loop
« Risposta #6 il: 08 Mar 2014, 15:43:26 »
Grazie per la pazienza che stai avendo.

Questo il mio file gonfiguration.php:

<?php
class JConfig {
    public $offline = '0';
    public $offline_message = 'This site is down for maintenance.
 Please check back again soon.';
    public $display_offline_message = '1';
    public $offline_image = '';
    public $sitename = 'Affinitas Consulting';
    public $editor = 'tinymce';
    public $captcha = '0';
    public $list_limit = '20';
    public $access = '1';
    public $debug = '0';
    public $debug_lang = '0';
    public $dbtype = 'mysqli';





    public $live_site = '';

    public $gzip = '0';
    public $error_reporting = 'none';
    public $helpurl = 'http://help.joomla.org/proxy/index.php?option=com_help&keyref=Help{major}{minor}:{keyref}';
    public $ftp_host = '127.0.0.1';
    public $ftp_port = '21';
    public $ftp_user = '';
    public $ftp_pass = '';
    public $ftp_root = '';
    public $ftp_enable = '0';
    public $offset = 'UTC';
    public $mailer = 'mail';

    public $fromname = 'Affinitas Consulting';
    public $sendmail = '/usr/sbin/sendmail';
    public $smtpauth = '0';
    public $smtpuser = '';
    public $smtppass = '';
    public $smtphost = 'localhost';
    public $smtpsecure = 'none';
    public $smtpport = '25';
    public $caching = '0';
    public $cache_handler = 'file';
    public $cachetime = '15';
    public $MetaDesc = 'This site is designed to provide guidance to all companies, especially small and medium size enterprises (SMEs) interested in entering emerging markets. Special focus goes to the Gulf countries (GCC), United Arab Emirates, Indian subcontinent and Baltic republics.';
    public $MetaKeys = 'company formation, free zone, free trade zones, limited liability company, offshore registry, offshore company, offshore, emerging markets, trading, import, export, commercial agreements.';
    public $MetaTitle = '1';
    public $MetaAuthor = '1';
    public $MetaVersion = '0';
    public $robots = '';
    public $sef = '0';
    public $sef_rewrite = '1';
    public $sef_suffix = '0';
    public $unicodeslugs = '0';
    public $feed_limit = '10';
    public $log_path = '/logs';
    public $tmp_path = '/tmp';
    public $lifetime = '15';
    public $session_handler = 'database';
    public $MetaRights = '';
    public $sitename_pagetitles = '0';
    public $force_ssl = '0';
    public $feed_email = 'author';
    public $cookie_domain = '';
    public $cookie_path = '';
}

Offline maicolstaip

  • Global Moderator
  • Instancabile
  • ********
  • Post: 17623
  • Sesso: Maschio
    • Mostra profilo
Re:This webpage has a redirect loop
« Risposta #7 il: 08 Mar 2014, 15:48:30 »
Per ricavare il percorso del tuo sito da mettere alle variabili che ti citavo prima:
http://forum.joomla.it/index.php/topic,112931.msg500405.html#msg500405
Non si risponde a PM tecnici. Postate sul forum. Grazie.

Offline 01Danny

  • Esploratore
  • **
  • Post: 141
    • Mostra profilo
Re:This webpage has a redirect loop
« Risposta #8 il: 08 Mar 2014, 16:03:38 »
ok fatto.

Ho aggiunto il percorso che mi è uscito più /tmp e /log  ma all'attivazione di "Search Engine Friendly URLs" il problema è sempre lo stesso.

La cosa è molto strana perchè in giro per internet sembra che tutti risolvono con guide simili a quelle postate da te in precedenza.

Possibile che non posso avere delle url normali?




Offline 01Danny

  • Esploratore
  • **
  • Post: 141
    • Mostra profilo
Re:This webpage has a redirect loop
« Risposta #9 il: 08 Mar 2014, 17:36:21 »
Sembra che disattivando il plugin 'System - Language Code' il tutto funzioni, onestamente non ho idea del perchè.

adesso chiedo:

1)quali sono le controindicazioni di questo?

2)come mai se inserisco la vecchia url (es: http://www.affinitasconsulting.ae/index.php?option=com_content&view=article&id=46&Itemid=37&lang=en) funziona ancora?

per capire questa ultima domanda potete andare sul sito e vedere che succede nelle url quando cliccate su qualunque bottone o quando inserite una delle vecchie url tipo (
http://www.affinitasconsulting.ae/index.php?option=com_content&view=article&id=49&Itemid=58&lang=en  oppure   
http://www.affinitasconsulting.ae/index.php?option=com_content&view=article&id=48&Itemid=56&lang=en  o qualunque altra)


Grazie mille

 



Web Design Bolzano Kreatif