Home › Forum › Amministrazione WP › Categorie e archivio
-
AutorePost
-
-
19 Gennaio 2009 alle 20:11 #9152aldolatPartecipante
Nel mio blog utilizzo questa struttura dei permalink:
/%category%/%postname%/
Ora, quando si visualizza la pagina archivio delle categorie, si vedono i post e in fondo alla pagina il link alle restanti pagine della categoria (/page/2, page/3, ecc.), tutto correttamente funzionante.
La struttura del permalink è http://www.mioblog.it/category/mia-categoria/
Se, però, da questo URL tolgo “category”, stranamente visualizzo sempre la stessa pagina archivio della categoria ma il link in fondo pagina alle restanti pagine, ovviamente, non funziona. Vale a dire:
http://www.mioblog.it/category/mia-categoria/page/2/ <– funziona
http://www.mioblog.it/mia-categoria/page/2/ <– non funziona
Ho guardato in altre installazioni di WP e se tolgo “category” visualizzo uno dei post della categoria (scelto non so in base a quale criterio).
Perché nella mia installazione di WP, a questo indirizzo http://www.mioblog.it/mia-categoria/, vedo quella pagina archivio?
P.S. Ho temporaneamente risolto impostando alcuni redirect in .htaccess, ma non è una strada praticabile: se aggiungo categorie o creo una pagina col nome di una categoria, le cose non funzionano.
-
19 Gennaio 2009 alle 20:52 #61470SteveAglAmministratore del forum
col tema standard come si comporta?
-
19 Gennaio 2009 alle 21:34 #61472aldolatPartecipante
Grazie della risposta!
Col tema standard va allo stesso modo. Ho controllato i due file archive.php (quello mio e quello del tema standard) e le istruzioni sono a posto.
Ho fatto una prova cambiando la struttura dei permalink da /%category%/%postname%/ a /%postname%/ e tutto sembra sistemarsi, vale a dire che se vado su http://www.mioblog.it/nome-della-categoria/ mi dà “pagina non trovata”, come credo sia giusto, visto che l’URL corretto è http://www.mioblog.it/category/nome-della-categoria/
Ho l’impressione che dipenda da una serie di redirect memorizzati nel db, ma posso sbagliarmi.
-
19 Gennaio 2009 alle 21:42 #61473aldolatPartecipante
Un aggiornamento.
Sempre mantenendo per ora i permalink come /%postname%/ ho fatto una prova.
Prendiamo due delle mie categorie: multimedia e wordpress.
Se digito come URL: http://www.mioblog.it/multimedia/ mi dà “pagina non trovata”
Se digito http://www.mioblog.it/wordpress/ mi dà un post X nella categoria “wordpress”.
Ma se digito http://www.mioblog.it/wordpr (proprio “wordpr” ma anche “wor”) mi va sempre nel post X di cui sopra.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.