Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coppa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Come reindirizzare i feed di WordPress a FeedBurner senza plugin

Nota editoriale: guadagniamo una commissione dai link dei partner su WPBeginner. Le commissioni non influenzano le opinioni o le valutazioni dei nostri redattori. Per saperne di più su Processo editoriale.

Aggiornamento: non consigliamo più di utilizzare FeedBurner perché è un prodotto in via di estinzione e pieno di bug. NON SI TRADUCE questo articolo per capire perché non dovreste usare FeedBurner e per conoscere le alternative.

Recentemente abbiamo caratterizzato un articolo che mostrava una guida passo passo alla configurazione di FeedBurner, condividendo i plugin da utilizzare per la reindirizzazione. In questo articolo vi mostreremo come potete reindirizzare i feed RSS di WordPress a Feedburner senza utilizzare un plugin (questo suggerimento è per utenti di livello intermedio o avanzato).

Per prima cosa aprite il file .htaccess che si trova nella directory principale (suggerimento: la stessa cartella in cui si trova wp-config.php). Quindi incollare il seguente codice:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC]
RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
RewriteRule ^feed/?([_0-9a-z-] )?/?$ http://feeds.feedburner.com/wpbeginner [R=302,NC,L]
</IfModule>

A proposito, non dimenticate di cambiare l’URL del feed con il vostro URL, altrimenti reindirizzerete gli utenti ai nostri feed.

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

33 commentiLascia una risposta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. jack glendening says

    Extra space in RewriteRule (just before closing parenthesis) needs to be removed, else apache gives Internal Server Error 500

  3. raj says

    Hi

    I am facing problem to add this

    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?sparringmind.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?feeds2.feedburner.com/sparringmind [NC]
    RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]

    code in to .htaccess file . when i am adding code the images of website going to missing.
    Also if i try to modify code the speed of website going to down .
    please help .

    Thanks

  4. Matt says

    I used something similar to this in my .htaccess but after 2 days my feedburner feed stopped updating. To troubleshoot I removed the FB redirects, but my source feed still points to Feedburner, so now I have a recursive loop going. Why do you think it’s still redirecting? DO you think adding the redirect code back to my .htaccess will fix it? It’s almost like my .htaccess isn’t being refreshed.

    Source Feed http://www.entertainmentbuddha.com/feed/

    FB – http://feeds.feedburner.com/entertainmentbuddha

    Code I used wasn’t in the proper location just under the permalinks rewrites. Also should your proposed code go within the section?

    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC]
    RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/entertainmentbuddha%5BR=302,NC,L%5D

    Thanks for any help you may provide. This is driving me nuts to say the least.

  5. Artem Russakovskii says

    Error 500 here too – apache gives this error: “RewriteRule: bad flag delimiters”

    Solution: put quotes around the first RewriteRule parameter, like so: “^feed/?([_0-9a-z-] )?/?$”

    I am fairly sure that space after the ] is the problem here that forces the need for quotes.

  6. kolobigi says

    For all those having 500 / internal errors just copy the code below to replace that found in your word press .htaccess (Look for # BEGIN WordPress to # END WordPress and simply replace,yopu don’t have to replace everything in .htaccess)

    # BEGIN WordPress

    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC]
    RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/YOUR FEEDBURNER ID [R=302,NC,L]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    Pls change the /YOUR FEEDBURNER ID to your own.

  7. sanchan says

    I already have this in the htaccess file.

    Do I overwrite the existing code or copy paste below?

    ——————————————-

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]

    # END WordPress

  8. dbunic says

    Just one question. If I want my comments feed from my blog redirect to the FeedBurner as well as my main feed, do I have to create a new feed?

    Thank you!

  9. Iroko says

    I got internal server error please, how can I correct this?
    this code you gave is to replace everything in the .htaccess file or where in particular?

  10. Konstantin says

    How does that go together with WordPress’ permalinks?

    I always get an error 500 when I try to combine those two scripts:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.