Webbabe
Se hanno diverso nome di dominio allora:
Rimuovi tutti i file del vecchio sito.
Carica il file 404 asp nel vecchio sito.
Rindirizzera tutto al nuovo dominio
e poi con il codice che ti do sotto (con il case statements ), puoi configurare le singole pagine che vuoi che i motori di ricerca considerino ancora esistenti e che vuoi vengano rindirizzate a specifiche pagine del nuovo sito. Cambiando cosi' l' errore 404 in errore 301.
[FONT=Consolas][SIZE=3]<%@ Language=VBScript %>[/SIZE][/FONT]
[FONT=Consolas][SIZE=3]<%[/SIZE][/FONT]
[FONT=Consolas][SIZE=3]newdomain = "[/SIZE][/FONT][FONT=Consolas][SIZE=3]metti tuo indirizzo web nuovo qui[/SIZE][/FONT][FONT=Consolas][SIZE=3]" [/SIZE][/FONT]
[FONT=Consolas][SIZE=3]thedomain = lcase(Request.ServerVariables("SERVER_NAME"))[/SIZE][/FONT]
[FONT=Consolas][SIZE=3]Theurl = lcase(Request.ServerVariables("QUERY_STRING"))[/SIZE][/FONT]
[FONT=Consolas][SIZE=3]errorpage = replace(Theurl, "404;ht" & "tp:" & "//" & thedomain & ":80","")[/SIZE][/FONT]
[FONT=Consolas][SIZE=3]Select case errorpage[/SIZE][/FONT]
[FONT=Consolas][SIZE=3]case "/old-page1.html"[/SIZE][/FONT]
[SIZE=3][FONT=Consolas] Response.Status="301 Moved Permanently" [/FONT][/SIZE]
[SIZE=3][FONT=Consolas] Response.AddHeader "Location", newdomain & "/new-page1.asp"[/FONT][/SIZE]
[FONT=Consolas][SIZE=3]case "/old-page2.asp"[/SIZE][/FONT]
[SIZE=3][FONT=Consolas] Response.Status="301 Moved Permanently" [/FONT][/SIZE]
[SIZE=3][FONT=Consolas] Response.AddHeader "Location", newdomain & "/new-page2.asp"[/FONT][/SIZE]
[FONT=Consolas][SIZE=3]Case Else[/SIZE][/FONT]
[SIZE=3][FONT=Consolas] 'Azione predefinita per tutte le pagine[/FONT][/SIZE]
[SIZE=3][FONT=Consolas] Response.Status="301 Moved Permanently" [/FONT][/SIZE]
[SIZE=3][FONT=Consolas] Response.AddHeader "Location", newdomain [/FONT][/SIZE]
[SIZE=3][FONT=Consolas]end select [/FONT][/SIZE]
[SIZE=3][FONT=Consolas]%>[/FONT][/SIZE]
Purtroppo con server windows, su aruba, non è possibile personalizzare alcuna 404... E adesso che faccio?
Non c'è alternativa? Dovrei cancellare tutti i file del sito e fare una semplice pagina in html? O un "volgare" error found 404!!!
Bruttino, non trovate?
Pensavo, come alternativa, a fare un redirect... o i motori potrebbero insospettirsi?
Che diteee?