-
Problema mod_rewrite
Ho aggiunto queste righe alla fine del mio .htaccess
Codice:
RewriteEngine On
RewriteRule ^prodotto-([0-9]+)\.html$ prodotti.php?id=$1
e ho creato il mio file prodotti.php.
Sfortunatamente aprendo prodotto-23.html ritorna un errore 404.
Cosa sbaglio?
Ahsfshs
-
Boh. Prova a mettere una [R] alla fine della regola, così fai un redirect e puoi vedere il risultato della rewrite, ammesso che venga applicata.
-
Grazie.
Però il link risulta /members/[ecc...]
Come si corregge?
Codice:
RewriteEngine On
RewriteRule ^prodotto-([0-9]+)\.html$ prodotti.php?id=$1
-
-
-
Che devo fare allora? (Non è up perchè non posso editare il messaggio)
-
Prova ad aggiungere
RewriteBase /
Tra quelle due righe
-