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

    ettori http e reindirirazzamento alla home

    Ciao rieccomi con un problemino :
    Sul motore di ricerca ho trovato una pagina del mio sito esattamente con questa struttura:

    http://www.miosito.net/nome-categoria-forum/8/

    ovviamente mi dà l'errore sottostante perchè adesso dopo aver rifatto il sito, la struttura è :

    http://www.miosito.net/forum/index.php?board=4.0

    codice:
    Not Found
    
     The requested URL /stregoneria-tradizionale/8/ was not found on this server.
     Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


    Questo è il mio htaccess posizionato in public_html

    codice:
    <IfModule mod_deflate.c>
        SetOutputFilter DEFLATE
        <IfModule mod_setenvif.c>
            # Netscape 4.x has some problems...
            BrowserMatch ^Mozilla/4 gzip-only-text/html
            
            # Netscape 4.06-4.08 have some more problems
            BrowserMatch ^Mozilla/4\.0[678] no-gzip
            
            # MSIE masquerades as Netscape, but it is fine
            # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
            
            # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
            # the above regex won't work. You can use the following
            # workaround to get the desired effect:
            BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
            
            # Don't compress images
            SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
        </IfModule>
        
        <IfModule mod_headers.c>
            # Make sure proxies don't deliver the wrong content
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
    </IfModule>
    
    ErrorDocument 404 /forum
    ErrorDocument 410 /forum
    ErrorDocument 500 /forum
    però ho anche un altro htacces in miosito/forum/

    Quale dovrei modificare e come?
    Vorrei reindirizzare l'errore alla pagina index.php del sito

    Grazie

  2. #2
    lascia perdere quello nella cartella miosito/forum/
    codice:
    ErrorDocument 404 /index.php
    Ultima modifica di passante; 17-05-2014 a 18:23
    lavoro per google?

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.