Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    ERR_TOO_MANY_REDIRECTS con htaccess

    Ciao a tutti,
    sto cercando di inserire in una sottocartella un sito in wp ma, dopo l'installazione, collegandomi ad esso mi viene fuori l'errore "ERR_TOO_MANY_REDIRECTS"

    Penso sia un problema del file .htacces presente nella root, ma non capisco dove poter intervenire.

    Ecco il codice .htaccess con la base delle regole. Grazie per la dritta.

    codice:
    Options +FollowSymLinks
    RewriteEngine On
    
    
    RewriteBase /
    ErrorDocument 404 http://www.sito.it
    RewriteRule (.*)/$ $1 [L,R=301]
    RewriteRule index.html http://www.sito.it [L,R=301]
    RewriteCond %{HTTP_HOST} !^www\.sito\.it$ [NC]
    RewriteRule ^(.*)$ http://www.sito.it/$1 [R=301,L]
    
    
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    
    
    
    
    RewriteRule ^([^/\.]+)/?$ index.php?path=/$1 [L]
    
    
    
    
    RewriteRule ^richiestapreventivo/([^/\.]+)/?$ index.php?path_strutture=/$1 [L]
    
    
    RewriteRule ^servizi/([^/\.]+)/?$ index.php?pathpagina=/servizi/$1 [L]
    
    
    
    
    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 2 days"
    </IfModule>
    ## EXPIRES CACHING ##
    
    
    SetOutputFilter DEFLATE
    AddOutputFilter DEFLATE text/plain
    AddOutputFilter DEFLATE text/xml
    AddOutputFilter DEFLATE application/xhtml+xml
    AddOutputFilter DEFLATE text/css
    AddOutputFilter DEFLATE application/xml
    AddOutputFilter DEFLATE image/svg+xml
    AddOutputFilter DEFLATE application/rss+xml
    AddOutputFilter DEFLATE application/atom_xml
    AddOutputFilter DEFLATE application/x-javascript
    AddOutputFilter DEFLATE application/x-httpd-php
    AddOutputFilter DEFLATE application/x-httpd-fastphp
    AddOutputFilter DEFLATE application/x-httpd-eruby
    AddOutputFilter DEFLATE text/html
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.avi$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.mov$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.rm$ no-gzip dont-vary
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch ^MSIE !no-gzip !gzip-only-text/html
    SetEnvIfNoCase Request_URI \.iso$ no-gzip dont-vary
    ---------------------------
    danielix05

  2. #2
    Moderatore di PHP L'avatar di Alhazred
    Registrato dal
    Oct 2003
    Messaggi
    12,508
    htaccess è un argomento server, non php, sposto.

  3. #3

    mi scuso e ringrazio Alhazred. speriamo di trovare una soluzione.

    Quote Originariamente inviata da Alhazred Visualizza il messaggio
    htaccess è un argomento server, non php, sposto.
    mi scuso e ringrazio Alhazred. speriamo di trovare una soluzione.
    ---------------------------
    danielix05

  4. #4
    Utente di HTML.it
    Registrato dal
    Jan 2016
    Messaggi
    337
    usi moduli per cache?
    Caygri.com
    Realizzazione siti internet, sviluppo personalizzato di moduli, app e molto altro.

  5. #5
    Quote Originariamente inviata da caygri Visualizza il messaggio
    usi moduli per cache?
    no, per la cache uso solo i comandi presenti nel file .htaccess
    ---------------------------
    danielix05

  6. #6
    Qualche idea?
    ---------------------------
    danielix05

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.