|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Apr 2003
Città: Monza
Messaggi: 2639
|
[PHP] Aiuto con MOD_REWRITE
Esempio pratico che funziona... a metà :
.htaccess RewriteEngine on RewriteRule ^notizie/([^/]+).html notizie.php?id=$1 [L] notizie.php <html>La pagina richiesta è<? echo $_GET['id']; ?> Se richiamo http://intranet/notizie.php?id=14 , stampa 14 Se richiamo http://intranet/notizie/14.html, non da errore.. ma non stampa 14 Saglio qualcosa o è una configurazione di apache? |
|
|
|
|
|
#2 | |
|
Senior Member
Iscritto dal: Nov 2005
Città: TO
Messaggi: 5206
|
Quote:
RewriteEngine on RewriteRule ^notizie/([0-9]+)\.html$ /notizie.php?id=$1 [L]
__________________
Andrea, SCJP 5 (91%) - SCWCD 5 (94%) |
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 23:11.



















