Visualizzazione 1 filone di risposte
Visualizzazione 1 filone di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › url rewrite personalizzato
Ciao ragazzi,
nel sito che sto realizzando con wordpress, ho creato delle pagine che leggono da un db personalizzato. ora dovrei fare in modo di rendere i link dinamici che utilizzo in queste pagine, statici, ovviamente il tutto al di fuori dei permalink di wordpress. Nella root del progetto ho messo il seguente file .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /progetti/_MIOSITO/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /progetti/_MIOSITO/index.php [L]
RewriteRule ^dettaglio-prodotti-([^/]+).html dettaglio-prodotti?id=$1 [L]
</IfModule>
# END WordPress
Quella che non funziona qui dentro è RewriteRule ^dettaglio-prodotti-([^/]+).html dettaglio-prodotti?id=$1 [L]
l'ho provata separatamente e funziona correttamente... infatti restituisce:
dettaglio-prodotti?id=69 ---> dettaglio-prodotti-69.html
cosa sbaglio?
grazie
Lory
Che quella riga va messa prima del blocco di wordpress perchè mesa dopo viene intercettata prima da WP, quindi mettila prima di # BEGIN WordPress
Credo che ora come ora per quelle URL ottieni dei 404 vero?
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0