Visualizzazione 5 filoni di risposte
Visualizzazione 5 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › Eliminare /category/ da URL categorie
Salve,
vorrei eliminare il /category/ (o quel che uno mette nella “Base delle categorie” in Impostazioni aggiuntive) dall’url di queste.
come fare?
ps: non sto parlando dell’url del post ma dell’url delle categorie
da mioblog.it/category/città /milano a mioblog.it/città /milano
grazie
Potresti provare questo tip …
lo avevo già provato… ho inserito quel codice nell’.htaccess come sotto, ma non funziona:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^category/(.+)$ http://miosito.it/$1 [R=301,L]
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Grazie Steve,
volevo però capire dove, secondo voi, sbaglio
(e magari riuscire in quello che volevo fare senza plugin)
intanto provo il plugin
Boh mai usato la rule che poi cosଠNON andrebbe con le sottocategorie… il plugin funziona fa quel che deve mette le regola di rewrite in WP, dove davvero si eseguono le rewrite eliminando le regole vecchie etc etc… usato in decine di siti nessun problema con altri plugin.. perchè complicarsi la vita
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0