Navigazione

  • CATEGORIES
  • Discussioni
  • Non letti
  • Recenti
  • Hashtags
  • Popolare
  • Utenti
  • Registrati
  • Accedi
Privacy - Termini e condizioni
© 2020 Search On Media Group S.r.l.
  • Registrati
  • Accedi
  • CATEGORIES
  • Discussioni
  • Non letti
  • Recenti
  • Hashtags
  • Popolare
  • Utenti
  • Stream
  • Interest
  • Categories
  1. Home
  2. Categorie
  3. Coding e Sistemistica
  4. Coding
  5. Redirect "legale"
Questa discussione è stata cancellata. Solo gli utenti con diritti di gestione possono vederla.
  • B
    bayle User Attivo • 5 ago 2006, 08:36 ultima modifica di

    Redirect "legale"

    Ciao a tutti, avendo studiato poco o nulla l'html, vi voglio chiedere: dato che per ora la home del mio sito è una sottocartella, come posso fare a indirizzare automaticamente i visitatori dalla home a un'altra cartella?
    Per esempio come fa Simone a questo sito: simonecarletti .it che indirizza automaticamente a: sc .it/blog/

    0 Miglior Risposta Ringrazia Cita Rispondi

      1 Risposta Ultima Risposta
      Caricamento altri post
      Rispondi
      • Topic risposta
      Effettua l'accesso per rispondere
      • Da Vecchi a Nuovi
      • Da Nuovi a Vecchi
      • Più Voti
       

    • I
      il.rappo Super User • 5 ago 2006, 09:09 ultima modifica di

      Se usi html, dire .htaccess...

      Scusa non ti posso dire di più che sono moribondo 😢

      0 Miglior Risposta Ringrazia Cita Rispondi

        1 Risposta Ultima Risposta
      • C
        claudioweb Super User • 5 ago 2006, 09:28 ultima modifica di

        Non si fa con html, nell'esempio specifico da te indicato si tratta di un redirect 302, fatto lato server.

        Per informazioni su come si fa il redirect 301, (che imho in questo caso è la stessa cosa) leggi pure qui http://www.giorgiotave.it/forum/16502-post13.html#16895

        :ciauz:

        P.S.

        @Il_Rappo said:

        Scusa non ti posso dire di più che sono moribondo 😢

        Che c'hai?

        0 Miglior Risposta Ringrazia Cita Rispondi

          1 Risposta Ultima Risposta
        • B
          bayle User Attivo • 5 ago 2006, 09:40 ultima modifica di

          @claudioweb said:

          Non si fa con html, nell'esempio specifico da te indicato si tratta di un redirect 302, fatto lato server.

          Per informazioni su come si fa il redirect 301, (che imho in questo caso è la stessa cosa) leggi pure qui http://www.giorgiotave.it/forum/16502-post13.html#16895

          :ciauz:

          P.S.

          Che c'hai?

          Grazie, ma poi in futuro posso togliere il redirect?

          0 Miglior Risposta Ringrazia Cita Rispondi

            1 Risposta Ultima Risposta
          • C
            claudioweb Super User • 5 ago 2006, 10:11 ultima modifica di

            Se già prevedi di toglierlo, applica un 302 allora.... che si differenzia dal 301 proprio per la temporaneità. Non so quale metodo tu voglia usare tra htaccess, php e asp, ma fare un 302 invece di un 301 è semplice. Basta fare le oppurtune sostituzioni nei codici per il 301.

            **301 Moved Permanently

            ** The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. Clients with link editing capabilities ought to automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible. This response is cacheable unless indicated otherwise.
            The new permanent URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).
            If the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.

            302 Found

             The requested resource resides temporarily under a different URI.    Since the redirection might be altered on occasion, the client SHOULD    continue to use the Request-URI for future requests.  This response    is only cacheable if indicated by a Cache-Control or Expires header    field. 
             The temporary URI SHOULD be given by the Location field in the    response. Unless the request method was HEAD, the entity of the    response SHOULD contain a short hypertext note with a hyperlink to    the new URI(s). 
             If the 302 status code is received in response to a request other    than GET or HEAD, the user agent MUST NOT automatically redirect the    request unless it can be confirmed by the user, since this might    change the conditions under which the request was issued. 
            

            Visto la questione non riguarda l'html ora vedo un po' dove spostare la discussione... 🙂
            Ciao :ciauz:

            0 Miglior Risposta Ringrazia Cita Rispondi

              1 Risposta Ultima Risposta
            • C
              claudioweb Super User • 5 ago 2006, 13:44 ultima modifica di

              Sposto in php sezione più idonea e questo genere di discussioni che riguardano redirect lato server. 🙂

              0 Miglior Risposta Ringrazia Cita Rispondi

                1 Risposta Ultima Risposta
              • B
                bayle User Attivo • 6 ago 2006, 11:57 ultima modifica di

                @claudioweb said:

                Se già prevedi di toglierlo, applica un 302 allora.... che si differenzia dal 301 proprio per la temporaneità. Non so quale metodo tu voglia usare tra htaccess, php e asp, ma fare un 302 invece di un 301 è semplice. Basta fare le oppurtune sostituzioni nei codici per il 301.

                Visto la questione non riguarda l'html ora vedo un po' dove spostare la discussione... 🙂
                Ciao :ciauz:

                Okay, grazie. Ma com'è il codice per il redirect 302?

                0 Miglior Risposta Ringrazia Cita Rispondi

                  1 Risposta Ultima Risposta
                • C
                  claudioweb Super User • 6 ago 2006, 12:40 ultima modifica di

                  Identici a quelli del 301 che trovi in quel post solo che al posto di

                  301 Moved Permanently
                  

                  devi mettere ```
                  302 Found

                  
                  :ciauz:
                  0 Miglior Risposta Ringrazia Cita Rispondi

                    1 Risposta Ultima Risposta
                  • B
                    bayle User Attivo • 7 ago 2006, 11:00 ultima modifica di

                    @claudioweb said:

                    Identici a quelli del 301 che trovi in quel post solo che al posto di

                    301 Moved Permanently
                    

                    devi mettere ```
                    302 Found

                    
                    :ciauz:
                    

                    Grazie! 😉

                    0 Miglior Risposta Ringrazia Cita Rispondi

                      1 Risposta Ultima Risposta
                    Caricamento altri post
                    Rispondi
                    • Topic risposta
                    Effettua l'accesso per rispondere
                    • Da Vecchi a Nuovi
                    • Da Nuovi a Vecchi
                    • Più Voti