Premetto che non so se questo è il posto giusto (eventualmente spostatemi) in quanto la mia domanda è a cavallo tra ASP, SEO, gestione server, e crossbrowsing (si scrive così?).
Devo fare un mod-rewrite su un server ASP che non supporta .htaccess, vorrei provare con il seguente codice.
Il miei quesiti sono i seguenti.codice:<% perc=Request.ServerVariables("QUERY_STRING") par =Split(perc, "/") npar=ubound(par) testo="" pag="404" if npar=-1 then pag="home" if npar=1 then if par(1)="" then pag="contatti" if par(1)="contatti.htm" then pag="contatti" if par(1)="aboutus.htm" then pag="aboutus" end if if npar=2 then if par(1)="articoli" then if par(2)="tutto-su-php.htm" then pag="php" if par(2)="tutto-su-asp.htm" then pag="asp" if par(2)="tutto-su-java.htm" then pag="java" end if end if if pag="404" then Response.Status = 404 testo="Errore 404" end if if pag="home" then testo="Home page" if pag="contatti" then testo="Contatti" if pag="aboutus" then testo="Chi siamo" if pag="php" then testo="Tutto su php" if pag="asp" then testo="Tutto su asp" if pag="java" then testo="Tutto su java" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Prova mod rewrite asp</title> </head> Menu: Home | Contatti | Chi siamo </p> Articoli: Tutto su php | Tutto su asp | Tutto su java </p> <h1><% response.write(testo) %></h1> <body> </body> </html>
1) I link così creati funzioneranno con tutti i browser? Io ho provato con i principali e mi funziona.
2) A livello SEO il "?" crea problemi?
Ciao a tutti