Ciao a tutti,
ho fatto un update della versione di wordpress dalla 3.0 alla 3.4.1.
da subito ho riscontrato alcuni problemi legati ai permalink associati alle categorie, i quali rimandavano ad una pagina di errore 404. ho risolto temporaneamente il problema installando il plugin WCS-Permalinks, che intercetta l’errore 404 e mi restituisce la pagina all’url nome-sito/?cat=x.
ho quindi utilizzato la funzione del codex add_rewrite_rule() per aggiungere un nuovo pretty url che sovrascrivesse quello obrobrioso che contiene l’id della categoria.
il codice usato ad esempio è
add_rewrite_rule('^shortcut/$','/?cat=2000/','top');
con un flush la nuova regola compare all'interno del file htaccess con il suffiso [QSA,L] ma in realtà sembra non funzionare. il link nome-sito/shortcat restituisce sempre un 404.
C'è un motivo in particolare per cui non debba funzionare?
Qualche idea?
grazie in anticipo!
P.S: ho provato diverse combinazioni, con e senza dollaro o cappelletto. il risultato non cambia