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

Jak przekierować kanały WordPress do FeedBurner bez wtyczki?

Aktualizacja: Nie zalecamy już korzystania z FeedBurner, ponieważ jest to umierający produkt pełen błędów. Przeczytaj ten artykuł, aby dowiedzieć się, dlaczego nie powinieneś używać FeedBurner i poznać alternatywy.

Niedawno opublikowaliśmy artykuł, w którym pokazaliśmy krok po kroku przewodnik po konfiguracji FeedBurnera, w którym udostępniliśmy wtyczki, których można użyć do przekierowania. W tym artykule pokażemy, jak przekierować kanały RSS WordPressa na Feedburner bez użycia wtyczki (ta wskazówka jest przeznaczona dla średnio zaawansowanych i zaawansowanych użytkowników).

Najpierw otwórz plik .htaccess, który znajduje się w twoim katalogu głównym (Wskazówka: ten sam katalog, w którym znajduje się wp-config.php). Następnie wklej następujący kod:

<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>

.

Przy okazji, nie zapomnij zmienić adresu URL kanału na twój własny adres URL kanału, w przeciwnym razie będziesz przekierowywać użytkowników do naszych kanałów.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

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.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

33 komentarzeZostaw odpowiedź

  1. Syed Balkhi

    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

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

    • Wonder

      Hi Jack, You Information on the code helped me, thanks!

  3. raj

    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. Aamir Rizwan

    What will happen to existing subscribers that have subscribed using: mydomain.com/feed ?

  5. Anshul Tewari

    This is awesome! It took me 6 months to figure this out. Thanks a lot for the wonderful post. Now the feeds redirect just perfectly fine :)

  6. Matt

    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.

    • Matt

      Found the issue thank God! For some reason the wp-insert plugin had my feed looping.

  7. Christian

    Nice tip, too many plugins means a mess so thanks for removing one.

    Again, nice work, I will come again.

    Thank you.

    Christian

  8. Artem Russakovskii

    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.

  9. Rajesh Namase

    Sir,
    this is not working for me. Always 500 internal error. I also try kolobigi method but this also not working.

  10. kolobigi

    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.

  11. sanchan

    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

  12. dbunic

    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!

    • Editorial Staff

      Yes, your comment feeds are separate, so you would have to create separate feeds on FeedBurner and then redirect your comment feed that way.

      Administrator

  13. Iroko

    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?

  14. Tony Tran

    I am trying this tip for my news blog but it doesn’t work. Always getting 500 error.

    • Editorial Staff

      Are you using a linux webhost? This is a simple redirect which should work if the server has apache enabled.

      Administrator

      • Iroko

        Thanks for the post you made on your site, the code works, thanks

      • kamran

        Thank you very much Modforest
        Your link works like a charm. And also thanks to WPBeginners your articles have helped me a lot in my blogging journey.

  15. Jolora

    Good tip – it’s a problem I hadn’t even considered before.

  16. Konstantin

    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]

    • Editorial Staff

      Wrap the WordPress Permalink’s code in the Ifmodule mod_rewrite.c tags as well and it should work :)

      Administrator

  17. Brett

    Very, very cool. Thanks for sharing this, I was actually wondering if there was a way to do this yesterday.

  18. Murlu

    Thanks for the tip, should help reduce the amount of load time since you’re not using a plugin :)

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.