Home › Forum › Problemi Vari con WP › Feed multipli, redirect, ecc…
-
AutorePost
-
-
6 Agosto 2010 alle 12:14 #14681PaperPartecipante
Allora.. sto mettendo in piedi un blog multilingua nei contenuti, utilizzando WPML.. e fin qui tutto ok.
Come la maggior parte dei temi, anche quello utilizzato ha la sua iconcina per i feed. A seconda della lingua selezionata dall’utente che visita il blog, il link dei feed cambia in automatico, ad esempio:
se l’utente usa l’inglese, il link dell’icona è http://www.mioblog.com/feed/
Mentre se usa l’italiano, cambia in http://www.mioblog.com/it/feed/
e cosଠvia…
Ora, per questioni logistiche, dovrei passare il tutto su feedburner. Purtroppo i plugin soliti per fare questa cosa, non fanno al caso mio perchè al massimo supportano un singolo feed dei post e uno dei commenti, quindi non mi sono utili.
Come fare quindi per visualizzare i vari link di feedburner al posto dei link elencati prima, ovviamente senza fare redirect “selvaggi” che portano feedburner a fare loop su se stesso?
Grazie
-
7 Agosto 2010 alle 19:40 #75953SteveAglAmministratore del forum
Sempre con redirect.. solo che fatti tutti a manina.. e con atrtenzione.. però devi prevedere tutti i casi.. quanti sono? Quante lingue?
-
7 Agosto 2010 alle 21:27 #75966PaperPartecipante
Ciao SteveAgl, grazie per la risposta.
Allora, le lingue sono due al momento, quella di default (inglese, con link miosito.com/feed/) e l’italiano (miosito.com/it/feed) ma l’obiettivo è, un pò alla volta, di ampliare le lingue disponibili per i contenuti e quindi i feed. Poi volendo ci sono quelli dei commenti, ma per ora basiamoci solo su quelli dei post.
Ora, per il lato “pratico”, non ho fatto altro che eliminare l’icona presente di default nel tema per i feed, sostituendola con un widget con logo rss e link feedburner.. in questo modo ho potuto inserire una traduzione del widget per l’italiano, inserendo cosଠil link feedburner per i feed italiani. Cosà¬, per l’utente normale la cosa funziona, in quanto in base alla lingua che seleziona dal menu nella sidebar, cambia anche il link dei feed, quindi qui ci siamo.
Quello che manca, è che i normali feed di wp sono sempre accessibili, mentre l’ideale sarebbe appunto fare il redirect dei singoli link, in modo che si vada sempre a finire su feedburner.
Ora, se io faccio dei normali redirect da .htaccess, ovviamente la cosa funziona, ma in linea teorica (correggimi se ho preso una cantonata) se faccio cosà¬, feedburner va in loop, venendo ridirezionato su se stesso.. e quindi senza accedere ai feed generati da wp.. giusto?
Quindi, sempre se il concetto di sopra non è una mia boiata, pensavo di fare i redirect usando il mod_rewrite, includendo delle regole per escludere dal redirect feedburner, ma nella mia ignoranza mi perdo sotto questo aspetto.
-
8 Agosto 2010 alle 9:20 #75972SteveAglAmministratore del forum
Posto che questo NON è un problema di WP e ci sono forum sistemisticia iosa:
# REDIRECT FEED ARTICOLI
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator) [NC]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/nomedelfeeddifeedburner [R=302,NC,L]
</IfModule>
questa regola o similare risolve, basta discriminare se il redirect va fatto sempre oo evitarlo per dati user agent, quelli di feedburner…
-
8 Agosto 2010 alle 9:55 #75974PaperPartecipante
Infatti avevo provato proprio con lo stesso codice che hai postato tu, provando anche alcune variazioni ma senza risultati.. quindi mi stavo chiedendo (ed è il motivo per cui sto ancora pensando dal lato WP) se la struttura utilizzata per i permalink, o lo stesso plugin WPML con le sue modifiche per la gestione del multilingua ecc, possono portare ad avere intoppi in questo senso, oppure no.
Io tendenzialmente penserei di no, però dato che non posso avere la certezza, chiedo.
A quel punto poi posso dedicarmi al capire il perchè non funziona indagando su altre cause “non-wp” e in altre sedi…
-
8 Agosto 2010 alle 10:10 #75977SteveAglAmministratore del forum
Le regole di cui sopra vanno ovviamente PRIMA del blocco di regole di WP.
-
10 Agosto 2010 alle 19:25 #76087PaperPartecipante
reply solo per dire che alla fine ho risolto.. avevo qualche altro intoppo di mezzo, ma alla fine ho sistemato tutto e già che c’ero ho spostato anche i commenti su feedburner. grazie SteveAgl per le varie risposte
-
31 Agosto 2010 alle 12:06 #76733mrmauroPartecipante
Ciao a tutti. Scusate se magari faccio domande già risposte, ma non ho ben capito.
Sto testando un nuovo sito in WP con qTranslate. Ad esso è associato un feed: http://www.sito.it/?feed=rss2, per l’italiano, e http://www.sito.it/?feed=rss2&lang=en, per l’inglese. Ho installato FD Feedburner, configurato e tutto ok, tranne che “ovviamente”, anche col link inglese viene sottoscritto quello italiano.
Da quel che ho capito qui dovrei mettere il link dei feed a mano e non farli generare automaticamente a wp?
Mauro
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.