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

Przewodnik dla początkujących po tworzeniu przekierowań 301 w WordPressie

Uwaga redakcyjna: Otrzymujemy prowizję z linków partnerskich na WPBeginner. Prowizje nie mają wpływu na opinie i oceny naszych redaktorów. Dowiedz się więcej o Proces redakcyjny.

Czy chcesz utworzyć przekierowania 301 na twojej witrynie internetowej WordPress?

Gdy ktoś przejdzie na twoją witrynę za pomocą starego odnośnika do strony, która została przeniesiona, przekierowanie 301 automatycznie przeniesie go na nową stronę, dzięki czemu nie zobaczy błędu 404 „nie znaleziono strony”. Zapewni to lepsze wrażenia użytkownika, a także poprawi twoje rankingi słów kluczowych.

W tym artykule pokażemy, jak utworzyć przekierowania 301 w WordPress.

Beginner’s Guide to Creating 301 Redirects in WordPress

Czym jest przekierowanie w WordPress?

Przekierowanie to sposób, w jaki twoja witryna internetowa WordPress automatycznie wysyła użytkowników na nowy adres, gdy strona, którą chcą przejść, została przeniesiona lub zastąpiona. Jest to podobne do sposobu, w jaki wpis przekierowuje twoją pocztę po przeprowadzce.

Istnieją różne rodzaje przekierowań, które są oznaczone numerami takimi jak 301, 302 i 307. Automatycznie kierują one przeglądarkę internetową twojego użytkownika na inny adres URL, gdy próbuje on przejść na stronę, która nie istnieje.

W tym przewodniku dla początkujących skupimy się na przekierowaniach 301, ponieważ są one najważniejszym rodzajem. Informują one przeglądarkę, że strona została trwale przeniesiona do nowej lokalizacji i że nie zamierzasz przenosić jej z powrotem.

To powiedziawszy, przyjrzyjmy się, kiedy powinieneś użyć przekierowania 301.

Kiedy potrzebne jest przekierowanie 301 w WordPress?

Głównym powodem korzystania z przekierowania 301 jest sytuacja, w której twoja witryna lub strona w witrynie została przeniesiona i zamiast tego chcesz skierować użytkownika na nową stronę.

Jest również potrzebny, gdy planujesz zmienić bezpośredni odnośnik wpisu lub strony.

Jeśli nie skonfigurujesz przekierowania, spowoduje to, że twoi użytkownicy zobaczą błąd 404, gdy strona nie zostanie znaleziona. Zapewnia to złe wrażenia użytkownika i może mieć wpływ na twój WordPress SEO.

404 Page Example

Możesz również stracić cenne linki zwrotne, jeśli na twojej witrynie znajduje się wiele niedziałających odnośników. Spowoduje to znaczny spadek autorytetu twojej domeny i rankingu słów kluczowych.

Właśnie dlatego przekierowania 301 są bardzo ważne. Pozwalają one poinformować wyszukiwarki i twoich użytkowników, że strona, do której próbują dotrzeć, została trwale przeniesiona do nowej lokalizacji.

W ten sposób cały ruch z twojej starej strony i linki zwrotne zostaną przeniesione na nową stronę.

Przyjrzyjmy się teraz, jak tworzyć przekierowania 301 w WordPress. Pokażemy ci, jak zrobić to łatwo za pomocą kilku wtyczek przekierowań WordPress i ręcznie za pomocą kodu.

Film instruktażowy

Subscribe to WPBeginner

Jeśli wolisz pisemne instrukcje, czytaj dalej.

Metoda 1: Tworzenie przekierowań 301 za pomocą wtyczki AIOSEO

Najprostszym sposobem zarządzania i tworzenia przekierowań 301 jest użycie wtyczki All in One SEO (AIOSEO) WordPress. Jest to najlepsza wtyczka SEO dla WordPress i jest używana przez ponad 3 miliony profesjonalistów do poprawy SEO ich witryn.

AIOSEO oferuje potężny dodatek do menedżera przekierowań, który bardzo ułatwia znajdowanie niedziałających odnośników na twojej witrynie internetowej i ustawianie przekierowań 301 w celu ich poprawki.

Uwaga: Do korzystania z menedżera przekierowań wymagana jest aplikacja AIOSEO Pro. Istnieje również darmowa wersja AIOSEO, ale nie obejmuje ona przekierowań 301.

Najpierw musisz zainstalować i skonfigurować wtyczkę AIOSEO Pro na twojej witrynie internetowej. Aby uzyskać więcej informacji, zapoznaj się z naszym przewodnikiem krok po kroku, jak poprawnie skonfigurować All in One SEO.

Po włączeniu wtyczki należy przejść do All in One SEO ” Redirects w twoim kokpicie WordPress, a następnie kliknąć przycisk „Activate Redirects”.

Activate AIOSEO Redirects

Następnie można kliknąć kartę „Ustawienia” i wybrać „PHP” jako metodę przekierowania.

Jest to najprostsza metoda tworzenia przekierowań i nie wymaga żadnej konfiguracji po stronie serwera.

Select the Redirect Method

AIOSEO pozwala również wybrać metodę przekierowania serwera WWW. Wymaga to jednak skonfigurowania Apache lub NGINX na twoim serwerze WWW. Wymaga to wiedzy technicznej i nie jest zalecane dla początkujących.

Tworzenie przekierowań 301

Teraz możesz tworzyć przekierowania 301. Aby rozpocząć, przejdź do karty „Przekierowanie”.

Najpierw wpisz odnośnik, który chcesz przekierować w polu „Source URL”. Następnie należy wpisz nowe miejsce docelowe dla odnośnika w polu „Docelowy adres URL”.

Enter Source URL and Target URL

Teraz upewnij się, że rodzaj przekierowania to „301 Moved Trale”, a następnie kliknij przycisk „Dodaj przekierowanie”.

Jeśli chcesz przekierować wiele adresów URL do nowej lokalizacji, po prostu kliknij przycisk „Utwórz adres URL” pod polem Źródłowe adresy URL.

Następnie można przewinąć w dół, aby zobaczyć logi utworzonych przekierowań. Pokazuje on liczbę osób, które przeszły na przekierowany odnośnik w kolumnie „Trafienia” oraz opcję włączania lub wyłączania poszczególnych przekierowań 301.

View Redirect Logs in AIOSEO

Dodawanie przekierowań 301 w celu poprawki błędów 404

AIOSEO może również pomóc w śledzeniu stron błędów 404 i ich poprawkach.

Aby włączyć tę opcję, należy przewinąć w dół do sekcji „Dzienniki przekierowań” na karcie Ustawienia. Następnie włącz opcje „404 Logs” i „Redirect Logs”.

Można również wybrać okres przechowywania logów. Zalecamy przechowywanie ich przez maksymalnie jeden miesiąc, aby zapewnić płynne i szybkie działanie serwera.

Enable 404 Logs

Po włączeniu tych opcji należy kliknąć przycisk „Zapisz zmiany”.

Teraz w sekcji Przekierowania powinna pojawić się nowa karta „404 Logs”. To tutaj AIOSEO będzie śledzić i pokazywać twoje niedziałające odnośniki i pozwoli ci ustawić przekierowania. Zobaczysz również liczbę przejść na odnośnik w sekcji „Trafienia” oraz datę i godzinę ostatniego dostępu.

404 Logs Under Redirects

Uwaga: Po pierwszym włączeniu logów 404 nie znajdziesz żadnych danych. Wtyczka zaczyna rejestrować strony błędów 404 dopiero po włączeniu ustawienia.

Następnie kliknij odnośnik „Dodaj przekierowanie” obok adresu URL błędu 404, który chcesz przekierować. Nie jest to przycisk na dole.

Zobaczysz teraz opcje pozwalające wpisz docelowy adres URL i wybierz rodzaj przekierowania z rozwijanego menu.

Redirecting a 404 Error Using AIOSEO

Wpisz swój nowy adres URL i wybierz „301 Moved Permanently” jako rodzaj przekierowania. Teraz należy kliknąć przycisk „Dodaj przekierowanie”.

AIOSEO utworzy teraz przekierowanie 301 dla twojego uszkodzonego odnośnika. Aby sprawdzić, czy przekierowanie działa prawidłowo, wystarczy przejść na stary adres URL i sprawdzić, czy użytkownik został przeniesiony do nowego miejsca docelowego.

Dodawanie przekierowań 301 bezpośrednio z wpisu lub strony

AIOSEO pozwala również na przekierowanie opublikowanego wpisu lub strony podczas jego edycji.

Jeśli przewiniesz do dołu strony w edytorze WordPress, znajdziesz sekcję Ustawienia AIOSEO. Należy kliknąć kartę „Przekierowania”.

Redirect a Post From the WordPress Editor

Źródłowy adres URL został już wypełniony. Po prostu wpisz nowy adres URL w polu „Docelowy adres URL” i wybierz „301 Moved Trale” z rozwijanego menu Rodzaj przekierowania.

Ponadto, jeśli zmienisz bezpośredni odnośnik wpisu podczas edycji, AIOSEO zaoferuje przekierowanie starego adresu URL na nowy.

Tak czy inaczej, kliknij przycisk „Dodaj przekierowanie” i gotowe.

Przekierowywanie pełnych witryn internetowych

Jeśli przeniesiesz swoją witrynę internetową na nową nazwę domeny, odwiedzający mogą napotkać niedziałające odnośniki, a SEO witryny może ucierpieć.

Możesz użyć AIOSEO, aby przenieść całą witrynę internetową do nowej lokalizacji bez utraty ruchu lub rankingów wyszukiwarek. Jest to pełne przekierowanie 301 witryny.

AIOSEO Full Site Redirect

Ważne jest, aby zrobić to we właściwy sposób, dlatego stworzyliśmy przewodnik krok po kroku dla początkujących, jak wykonać pełne przekierowanie witryny za pomocą WordPress.

Metoda 2: Tworzenie przekierowań 301 za pomocą wtyczki Redirection

Innym sposobem dodawania i zarządzania przekierowaniami w WordPressie jest wtyczka Redirection.

Najpierw należy zainstalować i włączyć wtyczkę. Możesz skorzystać z naszego szczegółowego przewodnika na temat instalacji wtyczki WordPress.

Uwaga: Chociaż konfiguracja przekierowań 301 za pomocą wtyczki WordPress jest łatwa, ma ona pewne drobne wady wydajnościowe. W zależności od dostawcy hostingu WordPress, twoje przekierowania mogą być o kilka mikrosekund wolniejsze niż w przypadku innych metod.

Jeśli chcesz, aby twoje przekierowania były jak najszybsze, możesz to zrobić, edytując plik .htaccess przy użyciu poniższej metody 5.

Po włączaniu przejdź na stronę Narzędzia ” Przekierowanie, a następnie kliknij przycisk „Rozpocznij konfigurację”.

 Start Setup of Redirection Plugin

Następnie możesz wybrać opcje monitorowania zmian bezpośrednich odnośników w WordPressie i logować się do wszystkich twoich przekierowań i błędów 404.

Wystarczy włączyć te opcje i kliknąć przycisk „Kontynuuj konfigurację”.

Basic Setup Redirection Plugin

Wtyczka będzie teraz automatycznie testować Rest API.

Gdy status powróci jako Dobry, kliknij przycisk „Zakończ konfigurację”.

Rest API Test in Redirection

Wtyczka przekierowania wykona jeszcze kilka zadań, aby zakończyć konfigurację. Gdy pasek postępu osiągnie 100%, możesz kliknąć przycisk „Kontynuuj”, a następnie przycisk „Gotowe do rozpoczęcia”.

Wtyczka jest teraz gotowa do tworzenia twoich przekierowań 301. Aby rozpocząć, przejdź do sekcji Narzędzia ” Przekierowania w twoim panelu WordPress. Powinieneś spojrzeć na sekcję „Utwórz nowe przekierowanie” u dołu ekranu.

Add a New Redirection at the Bottom of the Screen

Zobaczysz podstawowe ustawienia, aby dodać przekierowanie. Jeśli jednak klikniesz ikonkę koła zębatego, zobaczysz więcej opcji wyboru twojego rodzaju przekierowania.

Po prostu wpisz źródłowy adres URL twojej starej strony i dodaj „Docelowy adres URL”, na który chcesz przekierować. Powinieneś także upewnić się, że opcja kodu HTTP jest ustawiona na „301 – przeniesione trwale”.

Add New Redirection to Your Website

Gdy już wpiszesz wszystkie szczegóły, kliknij przycisk „Dodaj przekierowanie”.

Metoda 3: Tworzenie przekierowań 301 za pomocą wtyczki Simple 301 Redirects

Jednym z najprostszych sposobów tworzenia przekierowań 301 jest wtyczka Simple 301 Redirects. Jak sama nazwa wskazuje, sprawia ona, że przekierowania 301 są naprawdę proste.

Aby rozpocząć, należy zainstalować i włączyć wtyczkę na twojej witrynie internetowej.

Następnie należy przejść na stronę Ustawienia ” Przekierowania 301. Tutaj możesz wpisz stary adres URL w polu „Żądanie” i twój docelowy adres URL w polu „Miejsce docelowe”.

Simple 301 Redirects

Gdy to zrobisz, kliknij przycisk „Utwórz nowy”, aby utworzyć przekierowanie 301. To wszystko.

Proste przekierowania 301 zaczną działać natychmiast.

Czasami możesz chcieć zachować wpis na kanale Twojej witryny lub stronę wymienioną w określony sposób w Twojej witrynie, ale mieć treść hostowaną gdzie indziej. W tym miejscu przydaje się wtyczka Page Links To.

Po zainstalowaniu i włączaniu wtyczki, dodaje ona pole meta do twojego edytora WordPress. Tutaj możesz wpisz adres nowej lokalizacji, do której chcesz wysłać swoich użytkowników.

Page Links To in WordPress Editor

Po naciśnięciu przycisku „Aktualizuj” lub „Opublikuj” WordPress potraktuje wpis lub stronę w normalny sposób, ale gdy ktoś na nią przejdzie, zostanie przekierowany na wybrany konfigurator URL.

Na przykład, możesz mieć bloga, na którym od czasu do czasu tworzysz treści do pobrania, ale chcesz, aby użytkownicy twojej witryny sklepu internetowego widzieli niektóre wpisy jako produkty. Możesz użyć tej wtyczki, aby to zrobić, nie ryzykując kar za zduplikowaną treść od Google lub dzieląc twoją bazę użytkowników.

Metoda 5: Ręczne tworzenie przekierowań 301 przy użyciu .htaccess

Użytkownicy WordPressa mogą również ustawić przekierowania 301 poprzez edycję pliku konfiguracyjnego serwera WWW .htaccess.

Należy pamiętać, że niewielki błąd w kodzie .htaccess może sprawić, że twoja witryna WordPress będzie niedostępna i może zacząć wyświetlać wewnętrzny błąd serwera.

Dlatego ważne jest, aby przed wprowadzeniem jakichkolwiek zmian wykonać kopię zapasową twojego pliku .htaccess.

Edytuj swój plik .htaccess za pomocą wtyczki All in One SEO

Jeśli masz zainstalowaną wtyczkę All in One SEO, to oferuje ona łatwy sposób edycji twojego pliku .htaccess.

Uwaga: Do korzystania z edytora .htaccess wymagany jest program All in One SEO Pro.

Wystarczy przejść na stronę All in One SEO ” Tools i przełączyć się na kartę „.htaccess Editor”.

Editing .htaccess File Using All in One SEO

Z tego miejsca zobaczysz treść twojego pliku .htaccess w edytorze. Możesz po prostu umieścić dowolny kod przekierowania, który chcesz dodać na dole po linii „# END WordPress”.

Oto proste przekierowanie, w którym próbujemy wysłać użytkownika przechodzącego na stary wpis do nowego wpisu.

RewriteEngine On
Redirect 301 /a-very-old-post/ http://yoursite.com/a-very-new-post/

Nie zapomnij zmienić adresów URL starego i nowego wpisu. Po zakończeniu kliknij przycisk „Zapisz zmiany”, aby zapisać twoje ustawienia, a All in One SEO zaktualizuje twój plik .htaccess.

Bezpośrednia edycja twojego pliku WordPress .htaccess

Możesz również bezpośrednio edytować twój plik .htaccess WordPressa, aby skonfigurować dowolne przekierowania.

Aby edytować plik .htaccess, musisz połączyć się z twoją witryną internetową za pomocą klienta FTP. Plik .htaccess znajduje się w katalogu głównym twojej witryny WordPress.

Jeśli nie widzisz swojego pliku .htaccess, zapoznaj się z naszym przewodnikiem na temat tego, dlaczego nie możesz znaleźć pliku .htaccess na swojej witrynie WordPress.

Możesz pobrać .htaccess na twój komputer i edytować go za pomocą edytora tekstu, takiego jak Notatnik.

Możesz użyć poniższego kodu przekierowania, aby wysłać użytkownika, który przejdzie na stary wpis do nowego wpisu. Kod należy wkleić na końcu twojego pliku .htaccess po linii „# END WordPress”.

RewriteEngine On
Redirect 301 /a-very-old-post/ http://yoursite.com/a-very-new-post/

Upewnij się, że zmieniłeś adres URL starego i nowego wpisu. Następnie możesz zapisać twoje zmiany i przesłać plik .htaccess z powrotem na serwer.

Teraz możesz przetestować twoje przekierowanie, aby upewnić się, że przekierowuje prawidłowo, zgodnie z zamierzeniami.

Edit .htaccess File

Ponadto możesz również uzyskać dostęp do pliku .htaccess i edytować go za pośrednictwem kokpitu dostawcy hostingu i wbudowanego menedżera plików.

Na przykład, możesz znaleźć .htaccess w menedżerze plików SiteGround, przechodząc do Narzędzia witryny „ Witryna „ Menedżer plików i nawigując do katalogu /public_html/ twojej witryny.

SiteGround File Manager in Site Tools

Następnie możesz kliknąć prawym przyciskiem myszy plik .htaccess i wybrać opcję „Edytuj”.

Wystarczy bezpośrednio dodać kod przekierowania 301 i zapisać plik. Ponownie, pamiętaj, aby pobrać oryginalny plik .htaccess w celu utworzenia kopii zapasowej.

Editing your htaccess using SiteGround's file manager

Mamy nadzieję, że ten przewodnik dla początkujących dotyczący tworzenia przekierowań WordPress pomógł ci skonfigurować przekierowania na twojej witrynie. Możesz również zapoznać się z naszym przewodnikiem na temat tego, jak założyć bloga WordPress we właściwy sposób lub zobaczyć nasze wybory ekspertów dotyczące najlepszych usług e-mail marketingu dla małych firm.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

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

163 komentarzeZostaw odpowiedź

  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. Nick Grainger says

    Hi, thanks for the helpful article above.
    I have switched the permalink format from plain to post, and used the AISEO Pro Redirect function to redirect to the new page URLs. That all seems to be working fine – but now I can’t edit the pages. The system seems to be looking for the original plain format page address to edit. Help!
    Thanks in advance for your advice. Nick

    • WPBeginner Support says

      The WordPress editor uses the Post ID so changing the permalinks should not affect the editor. Please be sure to clear any caching and if you’re on a localhost installation, ensure you have mod_rewrite enabled in the tool you are using.

      Administrator

      • WPBeginner Comments says

        As long as proper redirects are in place, you could choose to delete the page if you are certain you no longer need it.

        However, sometimes it can be a good idea to turn it into a draft in case you need to reference it later.

  3. Lori Michelle says

    So I am just trying to understand. We have a wordpress website oldname.com. We rebranded the company and would love to use newname.com, but don’t want to lose any hyperlinks floating out in the world. Can I use the 301 redirect for the whole website on this website? Am I making sense? Help!!!

  4. Sean says

    What if you want to redirect a few specific blog posts to a new domain? For example: example.com/blog/hello-world to newsite.com/blog/hello-word. BUT, you don’t need to redirect ALL the old blog content. Just a few specific URLs?

    • WPBeginner Support says

      If you wanted it to go to a completely new URL, you would want to place the full URL in the target URL field.

      Administrator

  5. Donald McKenzie says

    If I remove comments from my blog, do I need a redirect for the material that was removed. Not the post, just the comments.

  6. Kanka says

    Hi, I have a post that I want to delete however after deleting it I plan on redirecting it to a page. Is this okay?

  7. Anka says

    I actually don’t have any problems while doing redirects, however, I have more than 50 redirects and plan to do more. Does this cause a problem as I also need to delete categories and some posts?

  8. hamada says

    i have made redirection with plugin „Redirection”then i deleted the redirection item from Redirection’s setting ,but i want to get it back the same what should i do

    • WPBeginner Support says

      The simplest method would be to recreate the redirect rather than attempting to restore it.

      Administrator

  9. Esmaeil says

    I have transfer my site from a domain to a brand new domain. how can I do the 301 redirect without entering address by address?
    I mean I want to define something like this : all URLs of example.com goes to example.net for example.
    thank you so much in advance.

  10. Tim says

    I have the redirects set up and working great, but I have a question about finding and replacing all these redirected urls.

    Is there a way to find/replace them across your complete WordPress site? Not just within the WordPress database, but also within personal HTML code, and urls within tables using TablePress added to the website.

    I’m looking for a global find/replace solution, is there one?

  11. Diana says

    Is there any chance I can implement 301 in free WordPress.com? It says I’m not allowed to install plugins. Only if I’m on business plan. And I want to migrate to WordPress.org

  12. Farukh Hussain says

    Hi,

    I have done a redirect some time ago using 'Redirection’ plugin.

    But now I cant find that url in the plugin. Even there is no code for that url in htaccess file too.

    I want to disable that redirect now. Is there any way to do this? Pls help?

    • WPBeginner Support says

      If the redirect is not in the plugin, you would want to check your htaccess file or reach out to your hosting provider for their assistance with finding the redirect.

      Administrator

  13. Ginger says

    If I’m redirecting several web pages (not posts), do I make duplicates of the code you showed above (both lines 1 and 2) for each of the new page I am redirecting? And do I keep copying those codes at the bottom of the .htaccess file?

    I read another article that suggests adding redirection codes in the functions.php file in the theme folder. The code is long and seems complicated. But I wonder, which option is more efficient — editing the .htaccess or editing the functions.php?

    • WPBeginner Support says

      You would add a new version of the second line of code, you only need the first line once. For where the redirect happens it is personal preference on which method is best.

      Administrator

  14. Lindsey says

    Hi

    Apparently my site has a 301 redirect on it, but I cannot discover where this is, nor what it is redirecting. There is nothing in the htaccess file. The site was originally built using a different name on localhost, and all the urls were changed to become the new domain name. Could this be the problem? How do I track down where the 301 is because it is causing problems with the SSL certificate. Thanks

    • WPBeginner Support says

      Updating the urls shouldn’t be an issue if they were updated correctly. If you reach out to your hosting provider they should be able to help you find what is causing the redirect.

      Administrator

  15. Jessica says

    I can’t thank you enough for this simple guide as I’ve always been told to not touch redirects unless you know what you’re doing, so my seo suffered a bit because I ended up not doing anything. Fact is, I know enough and can follow instructions if they’re not written for developers and I don’t have to rely on a plugin that may cause problems later ’cause they all do at some point, right? Thank you. This link is going in my toolbox to share with others having the same problem.

    • WPBeginner Support says

      You’re welcome, glad our guide could be helpful for you and anyone you share it with :)

      Administrator

  16. Wendy says

    I used the method in the video, but my site still has Uncategorized listed at the top and the side. I tried to find the third part of the video about changing the 301 redirect links in my settings, but it is not there. However, when I click on Uncategorized it changes to general, but when I visit my site again or refresh it is back to Uncategorized. The plugin for redirects said it was compatible with my theme. Any help is appreciated, thank you.

  17. Hannah says

    Hey there! thank you for the helpful info! I am wondering does this plugin work for a change of domain on my blog? I recently changed my domain and read that it is very important to implement a 301 redirect in order to not lose rankings and exposure. Would this do the trick? If so, would I put my old domain in the source line and the new domain in the target line?

    Thank you!

  18. Matt says

    Can I use „page links to” and „redirection” one the same site?

    They seem like they serve different needs, but I have seen warnings that you shouldn’t use more than one redirection plugin at a time. True?

    I like redirection features, but I like having something on the „edit post” view that I can use to set up a redirect (e.g., teaser/excerpt linking out to a landing page or to another site). Thanks!

    • WPBeginner Support says

      We would not recommend using the two plugins at the same time to prevent any conflicts between the two, you could check with the plugin authors for if there is a recommended method for the two plugins to work together.

      Administrator

  19. Bill says

    I migrated a WP website to a new domain and set up a redirect from the old domain to the new one within cPanel. The redirects are nearly instantaneous (that’s good, right?) but I’d like to delay them for a few seconds, long enough to display a screen on the old homepage explaining why they’re being redirected.

    I’m not a programmer. Is there a plugin that will allow me to adjust the time before the redirect occurs? TIA

    • WPBeginner Support says

      Unless I hear otherwise, we do not have a simple method we would recommend to set that up sadly.

      Administrator

  20. Lee says

    Hello,
    A great post by the way.
    I have numerous pages which have been redirected to new urls, I have updated all page link urls to the new urls, so no broken links on front end.
    My question is after a few months is it safe to delete any redirects which were created?
    Many thanks.
    Lee

    • WPBeginner Support says

      If there are no references to the broken links you could remove the redirects, otherwise it may be best to keep the redirects active.

      Administrator

  21. Matthew says

    Hi, I have been using the redirection plugin for a while now trying to sort my old posts out from when I first started ( the permalinks were awful )
    What I have been doing is creating another post with a better permalink and copy and pasting the content from the old URL to the new one and then 301 redirecting them.
    After reading this post I’m starting to think that I don’t need to create a completely new post but just change the permalink on the old one and redirect it like that, Am I Correct?
    If so, can I delete all the old duplicate posts from before or should I leave them as they are?
    Thanks if you can help :)

    • WPBeginner Support says

      Correct you can modify the permalink and redirect without the need for the old post to be active. As long as the redirects are in place you can remove the old posts if you wanted.

      Administrator

      • Matthew says

        So just to clarify, I can delete the old posts that I copied and pasted into a new one and redirected the URL, and that all I have to do is to modify the permalink and not copy and paste the whole URL into a different post but just redirect the old permalink to the new one?
        Thanks so much for replying to me, you have saved me so much time if that’s the case :)

  22. Wilbert Beltran says

    Hi, I recently duplicated a site. Let’s say the original site’s url is original.com and I created a subdomain http:testsite.orginal.com where the duplicate site is located. Now, the question is how do I do the redirection with this kind of setup. I want to make the site at original.com to be the main site.

    Thanks

  23. Gina says

    Hi – thank you for this! Love you guys. I downloaded the plugin and have redirected some pages. Can you tell me if I should redirect mysite.com to miresite.com/ – how do I do that? somewhere along the line the „/” fell away. There were 4 different redirect plugins on the WP site I am working on for a client and the site crashed last week – I deactivated them all and installed this one – all is good except for the/ thing. Am I even asking a logical question?

    • WPBeginner Support says

      You shouldn’t need to worry about redirecting the site to an address with a / at the end

      Administrator

      • Gina says

        Hi – I have now discovered that my page mydomian.com/ is being redirected to mydomain.com – without the /

        I don’t know where this happened or how except from possibly one of the plugins I downloaded?? It is a 301 and I do not know now if this has damaged anything? All the search results show the address with the /. but when the result is clicked it go to the non /. please can you help or send me to somewhere that can help of fix

        • WPBeginner Support says

          You would first want to take a look at your plugins if any of them are designed for redirects you would want to see if that is set there. If none of those are causing the redirect you would want to see if the redirect is created in your htaccess file or under Settings>General if the address was changed there.

  24. Vinca says

    does this work the same for 302 redirects in an htaccess file? A client has asked to 302 redirect around 800 urls from a wordpress site to a Wix site. There are moments when it all operates fine, then we get several 404’s. Not sure if it’s because there are way too many urls or if we are overlooking something?

    • WPBeginner Support says

      The htaccess method would work for 302 redirects if you changed the number to 302. 302 redirects are temporary which could be part of your problem as well as your caching.

      Administrator

  25. Md firoz ahmed says

    I have a WordPress site. I face some problem. I am using the woo commerce plugin. Woocommerce site automatically added product category page in my permalinks as- google.com/product-category/up/this-is-my-page. I want to redirect this link like- google.com/this-is-my-page. how can i solve this? any help

    • WPBeginner Support says

      For editing WooCommerce’s permalinks, you would want to check under Settings>Permalinks to modify them. If you take a look at WooCommerce’s documentation they explain more in depth. :)

      Administrator

  26. Daniel Akinyele says

    Hi, Wp beginnger, if you could help me i will be do happy, I used the Htacces code and it worked perfectly. But i want My Media Files to redirect to itself,
    So is there a code to stop The d=redirection in Wp-contents Folder..pls help me my Website is Dieing

  27. Emmanuel Ekanem says

    Hello, does this redirection works for a URL complete change?

    For example, I’m using olddomain.com and I bought newdomain.com, and want to redirect olddomain.com to open up newdomain.com.

    Any help on that??

  28. Mauwiks says

    How can I redirect a single homepage to another domain but the rest of the pages from my redirected domain won’t be affected?/

  29. Kavitha says

    I have a subdomain for affiliate store. I want to know how to redirect from my site page to subdomain page. Please help.

  30. Maegen says

    Thank You so so much! I have been blogging for about 8 months and have worked so hard to build my Pinterest account. It is where almost all my traffic comes from. A month ago I changed over to https and I didn’t realize until last night that none of my pins were redirecting to the https. I just fixed it all thanks to you!

  31. raj says

    thanks for the information. i have small doubt how can i redirect old post to new post without loss of comments. i mean i need previous comments

  32. Angelica says

    Just FYI – the screenshots are out of date I think. Under Add New Redirection, I just see Source/Target URL and Group.

  33. Aaron says

    Hi, I am trying to find a way to redirect to a single page similar to a 404 when a user enters a non-existent subdomain. for example if they mash the keyboard or make a typo when keying in the domain. I want to get rid of the standard wordpress 'No Results Found…The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.’

    Can someone point me to the solution of this problem? Or what this is called so I can try find the solution? All I’m getting is results about making my multisite a single url…

    Thank you!

  34. Abdul Rehman says

    I only want to redirect when a visitor to my website clicks on an external link from my website. For example, if you were to click on a product from my page it would then redirect you first to a „You are being redirected” page, then off to the affiliate’s website.
    I have been spending hours trying to do this. Please help. At this point I just want to know if it is possible with any wp plugin or any other workaround and if so how to do it.

  35. cipriana leme says

    How do I redirect from a wordpress blog (free) to a .com blog? I cannot install plugins in the free blog, so how could I do the redirect? Any advice?
    Thanks in advance

  36. Hannah says

    Hello! I just created a website on WordPress.org and imported all of my content from my old site, example.wordpress.com (using WordPress.com). Is there a way to redirect all of the content from that site to my new one? The redirect instructions provided by WordPress gave me an error that the domain already exists, probably because it thought I was trying to create a new domain on WordPress.com.

    My website traffic before is pretty minimal, so if anyone clicks on previous blog posts on my social channels, they’d be taken to the shut down version of my old site without the redirects – not the end of the world because I don’t have the following that would generate clicks at a later date, but you never know?

    Any advice anyone has would be great!

    Thanks,

    Hannah

  37. Shakoat Hossain says

    Brilliant solution to reduce redirects for worpress!

    For a few days, I’m looking to solve my WP redirects issues. I don’t find out better solution even read this content.

    Here, I got few good points and try to reduce redirect to increase my page load speed.

    Thanks! :)

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