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

Czym jest przyjazna dla SEO struktura adresów URL w WordPress?

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.

Zastanawiasz się, jaka jest najbardziej przyjazna dla SEO struktura adresów URL w WordPress?

W WPBeginner często otrzymujemy to pytanie. Wielu użytkowników chce upewnić się, że ich adresy URL są zoptymalizowane pod kątem wyszukiwarek, ale nie są pewni, która struktura bezpośredniego odnośnika (trwałego odnośnika) jest najlepsza dla ich potrzeb.

W tym artykule wyjaśnimy, jaka jest najbardziej przyjazna dla SEO struktura adresów URL i jak można zmienić twoje bezpośrednie odnośniki w WordPress.

SEO Robot

Czym są przyjazne dla SEO adresy URL?

W optymalizacji pod kątem wyszukiwarek (SEO), przyjazne dla SEO adresy URL zawierają słowa kluczowe, które dają przegląd treści strony. Są one opisowe i łatwe do odczytania zarówno dla ludzi, jak i botów wyszukiwarek.

Oto przykład przyjaznego dla SEO adresu URL dla wpisu na blogu o tym, jak zainstalować WordPressa:

https://www.example.com/how-to-install-wordpress

A oto jak wygląda adres URL nieprzyjazny SEO:

http://www.example.com/?p=10467

Co zatem sprawia, że te dwa produkty różnią się od siebie? Oto wyjaśnienie:

  • Przyjazny dla SEO adres URL zawiera docelowe słowo kluczowe artykułu lub zapytanie wyszukiwania, dla którego treść próbuje uzyskać ranking.
  • Używa myślników lub myślników do oddzielania słów, a nie innych znaków specjalnych, takich jak podkreślenia.
  • Używa protokołu HTTPS zamiast HTTP, pokazując, że witryna internetowa korzysta z certyfikatu SSL w celu zabezpieczenia danych użytkownika.
  • Uproszczona nazwa adresu URL, która identyfikuje stronę internetową, pojawia się zaraz po nazwie domeny, bez żadnych dodatkowych słów lub liczb pomiędzy nimi (takich jak https://www.example.com/category/2023/how-to-install-wordpress).

Chociaż struktura adresów URL stron internetowych nie jest głównym czynnikiem rankingowym, jest to ważny techniczny aspekt SEO, który należy zoptymalizować.

Dzieje się tak, ponieważ pomagają one wyszukiwarkom zrozumieć, o czym są strony. Ponadto pomagają one poprawić komfort korzystania z Twojej strony. Dzięki czytelnemu adresowi URL użytkownicy mogą zorientować się, co znajdą na stronie lub we wpisie.

Jaka jest najlepsza struktura permalinków dla SEO WordPressa?

W WordPressie odnośniki nazywane są permalinkami (skrót od trwałych odnośników). Spotkasz się z zamiennym stosowaniem taksonomii struktury bezpośrednich odnośników i struktury adresów URL.

Domyślnie WordPress używa teraz struktury bezpośredniego odnośnika do nazwy wpisu w adresie URL, jak https://www.example.com/how-to-install-wordpress. Jest to już najbardziej przyjazna dla SEO struktura adresów URL.

Mimo że WordPress wykorzystuje już strukturę przyjazną dla SEO, wiele osób wciąż pyta nas, jaka jest najlepsza struktura.

Zastanawiają się, czy powinni zmienić swoją starą, nieprzyjazną dla SEO strukturę adresów URL, mimo że prowadzą swoją witrynę internetową od jakiegoś czasu. W przeszłości WordPress używał formatu bezpośredniego odnośnika nazwy wpisu, ale zostało to zmienione w WordPress 4.2.

A może mają dużo treści i chcą wiedzieć, czy struktura nazw wpisów jest dla nich odpowiednia.

Aby ci pomóc, zaczniemy od odpowiedzi na pierwsze pytanie.

Czy powinieneś zmienić twoją starą strukturę adresów URL na nową?

Jeśli twoja witryna działa dłużej niż 6 miesięcy, nie zmieniaj struktury bezpośrednich odnośników. W rzeczywistości nie musisz używać struktury nazw wpisów, którą właśnie ci pokazaliśmy.

Wyjątkiem od tej reguły jest sytuacja, w której twoja obecna struktura adresów URL to zwykłe bezpośrednie odnośniki. Zdecydowanie zalecamy aktualizację do nazw wpisów lub innych czytelnych formatów dla lepszego SEO.

Jeśli posiadasz witrynę o ugruntowanej pozycji i zdecydujesz się na zmianę struktury bezpośrednich odnośników, powinieneś być świadomy potencjalnych problemów, takich jak:

Dlatego zalecamy zatrudnienie profesjonalisty do skonfigurowania odpowiednich przekierowań. W ten sposób użytkownicy będą automatycznie przekierowywani na nowy adres URL strony po zmianie struktury bezpośrednich odnośników.

Pro Tip: Chcesz poprawić SEO swojej witryny WordPress bez ciężkiej pracy technicznej? Pomiń kłopoty i pozwól naszym ekspertom WordPress SEO zoptymalizować twoją witrynę internetową, od tworzenia treści po techniczne SEO.

Jak skonfigurować przyjazną dla SEO strukturę permalinków?

Teraz, jeśli masz nową witrynę internetową WordPress i chcesz skonfigurować strukturę adresów URL przyjazną dla SEO, oto jak to zrobić.

Pierwszą rzeczą, którą musisz zrobić, to przejść do Ustawienia „ Bezpośrednie odnośniki z twojego obszaru administracyjnego WordPress. Spowoduje to przejście do strony, która wygląda następująco:

Optimizing your WordPress permalinks using the WordPress site settings

Jak widać, do wyboru jest kilka struktur bezpośredniego odnośnika, więc przejdźmy przez każdą z nich.

  • Plain (https://www.wpbeginner.com/pl/?p=123) – była to domyślna struktura adresów URL WordPressa i nie jest to opcja przyjazna SEO.
  • Dzień i nazwa (https://www.wpbeginner.com/pl/2016/01/22/sample-post/) – Ta opcja jest nieco przyjazna dla SEO, ponieważ zawiera nazwę wpisu. Jednak w przypadku dat adres URL staje się zbyt długi. Co ważniejsze, twoja treść może po pewnym czasie wyglądać na nieaktualną.
  • Miesiąc i nazwa (https://www.wpbeginner.com/pl/2016/01/sample-post/) – podobnie jak poprzednia opcja, ten format również wiąże się z ryzykiem datowania. Ale jeśli jesteś wydawcą wiadomości, to posiadanie dat jest w porządku, ponieważ mogą one pokazać, kiedy artykuł został wydany.
  • Numeric (https://www.wpbeginner.com/pl/archives/123) – opcja podobna do zwykłej, z tym wyjątkiem, że zawiera stronę archiwum i identyfikator wpisu. Tej opcji również nie zalecamy.
  • Nazwa wpisu (https://www.wpbeginner.com/pl/sample-post/) – ta opcja jest najbardziej przyjazna dla SEO, ponieważ jest opisowa i krótka. To sprawia, że jest idealna dla witryn biznesowych publikujących wiecznie zielone treści, które zawsze plasują się na stronach wyników wyszukiwania (SERP).
  • Własna struktura – dzięki tej opcji możesz wybrać własną strukturę adresu URL przy użyciu dostępnych tagów. Zalecamy tę opcję, jeśli prowadzisz większą publikację, ale uważasz, że nazwa wpisu nie jest wystarczająco przyjazna dla użytkownika.

Po wybraniu struktury bezpośrednich odnośników przewiń w dół i kliknij „Zapisz zmiany”.

WordPress automatycznie zaktualizuje plik .htaccess twojej witryny, a twoja witryna natychmiast zacznie korzystać z nowej struktury adresów URL.

Clicking Save Changes in the WordPress permalinks page

Jak utworzyć własną strukturę adresów URL w WordPress?

W WPBeginner używamy własnej struktury permalinków, która dodaje nazwę kategorii wraz z nazwą wpisu w adresie URL.

Ponieważ nasza witryna jest duża i zawiera tysiące artykułów, bardzo nam to odpowiada. Większe publikacje i sklepy e-handlu z mnóstwem kategorii produktów mają podobną strukturę adresów URL.

Aby użyć niestandardowej struktury adresów URL, należy dodać specjalne tagi w polu struktury własnej. Na przykład używamy:

/%category%/%postname%/

Powiadomienie o zawinięciu każdego tagu między znakami procentu. Zwróć również uwagę na końcowe ukośniki / przed, po i między tagami.

Ten format działa dla nas najlepiej, ponieważ opisuje treść i pokazuje, do jakiej kategorii należy, a jednocześnie nie jest zbyt długi.

Istnieje jednak wiele innych kombinacji, które można utworzyć za pomocą tagów. Oto lista tagów, których możesz użyć do stworzenia własnej struktury adresów URL:

  • %year% – Rok wpisu w postaci czterech cyfr, np. 2016.
  • %monthnum% – numer miesiąca w roku, np. 05.
  • %day% – Dzień miesiąca, np. 28.
  • %hour% – Godzina dnia, np. 15 (dla 3 po południu).
  • %minute% – Minuta godziny, na przykład 43.
  • %second% – druga część minuty, np. 33.
  • %postname% – Oczyszczona wersja tytułu wpisu. Na przykład, jeśli tytuł twojego wpisu brzmi „To świetny wpis!”. W adresie URL będzie to „this-is-a-great-post”.
  • %post_id% – Unikatowy identyfikator # wpisu.
  • %category% – oczyszczona wersja nazwy kategorii. Na przykład, jeśli nazwa kategorii to „Poradniki WordPress”, w adresie URL będzie to „wordpress-tutorials”. Zagnieżdżone podkategorie pojawiają się jako zagnieżdżone katalogi w URI.
  • %author% – oczyszczona wersja nazwy autora.

Po skonfigurowaniu własnej struktury bezpośrednich odnośników nie zapomnij kliknąć przycisku „Zapisz zmiany”, tak jak poprzednio.

Wskazówka bonusowa: Popraw swoje SEO WordPress dzięki All in One SEO

Teraz, gdy już skonfigurowałeś przyjazną dla SEO strukturę adresów URL, prawdopodobnie szukasz więcej wskazówek, jak poprawić pozycję Twojej witryny internetowej w rankingach SEO.

Zalecamy korzystanie z wtyczki All in One SEO (AIOSEO). Jest to najlepsza wtyczka WordPress SEO używana przez ponad 3 miliony witryn internetowych i jest to narzędzie, którego używamy na WPBeginner.

All in One SEO website

Zawiera wszystkie potężne funkcje SEO, których będziesz potrzebować, takie jak mapy witryn, generator schematów, menedżer przekierowań, asystent odnośników, analiza SEO na stronie i wiele innych, które pomogą Ci poprawić rankingi SEO.

Więcej szczegółów można znaleźć w naszym przewodniku na temat prawidłowej konfiguracji AIOSEO oraz w naszej pełnej recenzji AIOSEO.

Oprócz tego, pomocne mogą okazać się poniższe przewodniki:

Mamy nadzieję, że ten artykuł pomógł ci stworzyć przyjazną dla SEO strukturę adresów URL dla twojej witryny WordPress. Warto również zapoznać się z naszym przewodnikiem na temat kategorii i tagów: Najlepsze praktyki SEO dotyczące sortowania twojej treści i ustawień witryny WordPress, które są kluczowe dla sukcesu SEO.

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

58 komentarzyZostaw 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. Iriogbe peter says

    Keynotes from this post and what Google recommended

    Google suggests keeping your website addresses simple and easy to understand. When creating a URL:

    Using hyphens or dashes (-) is preferred over underscores or other symbols. For instance, go for „my-page” instead of „my_page.”

    It’s a good idea to keep things straightforward. Don’t add unnecessary details or extra information to your URLs. Focus on using keywords that accurately describe your content.

    If you can, try not to include dates in your URLs unless it’s really important for what your content is about.

  3. Moinuddin Waheed says

    Earlier I used to have the default options for Permalink structure that was with the WordPress installation.
    I have them switched to use the posts slug for Permalink structure as it looks good and seo friendly as well.
    Having said this having both category and then posts is very good as it helps categories the posts.
    I will do this custom permalink structure for my posts.
    Thanks for this helpful guide.

  4. Reza says

    Hi,
    Thank you for your short and informative article. just a quick question?
    Our website has been running for more than a year. I checked the permalink and it is set to Day and Name.
    what do you think if I change it to Post name?

    Thanks

  5. Julia says

    Hi, thanks for the article, it’s really complete and helpful. Could you please provide examples of plain links?

    • WPBeginner Support says

      For plain links, we cover that in the permalinks setting section or you can take a look under Settings, Permalinks to see what plain permalinks would look like for your domain :)

      Administrator

  6. Etinosa says

    I’ve had my blog for almost a year and the permalinks I use is the month, day then post title one. I would like to change it to just the post title.
    How do I go about this? I don’t want to end up with broken links.
    Do you think I should change it or I should just leave it as it is?

    • WPBeginner Support says

      It would be a difficult process to change your permalinks after a year, there are tools on the Yoast site for what to add to your htaccess for redirects or you can keep your permalinks as they are.

      Administrator

  7. Dwayne S says

    I have seen where when a post is created it removes words like in, for, at etc. Yoast warns about leaving these words (stop words I believe they are referred to as) in the url. However I notice all your blog posts utilize these stop words. Can you explain why you don’t remove stop words from your urls?

  8. Teresa Solomita says

    Hey, thanks for this article! My site was launched this week by a developer and now I am learning WP! I changed my permalink setting to post name – they had it as Day and Name!

  9. SANJEEV KUMAR says

    Sir,
    I used custom structure with post name. The main is comes when i change the post permalink the the post permalink is updated in desktop and working fine but in mobile the permalink not updated and gives 404 error.I used news paper please helped me in this matter.

  10. AKulkarni says

    Thanks for this nice write-up.

    I have one question and if you could advise, that would be grateful.

    I have a WordPress website (not launched yet, testing phase). Registered users can submit post and comments. I am using 'Post name’ as permalink structure. Issue arises when user changes the post title, the permalink also changes which from SEO point of view will have broken links in search if already indexed. I understand i can switch to 'Plain’ permalink (Post Id) structure. But I want to utilize URL keywords from SEO point if view.

    Is there any to achieve this by using custom permalink structure or only way is to use Plain permalink structure.

  11. Smith R. says

    1) From Permalink settings in WordPress, I had added „.” (dot) in Category base so now my category URLs are like: example.com/smith instead of example.com/category/smith

    Although, you try to enter example.com/category/smith, it will redirect to example.com/smith

    2) Now, I have created some pages with the same name as a category, URLs for both are same. Is it bad for SEO?

    for example:
    parent Category is: example.com/smith
    sub-category is: example.com/smith/rr

    parent page is: example.com/smith
    child page is: example.com/smith/rr

    I don’t know what’s going on in backend and how it can affect SEO?

    Thanks in Advance.

  12. Trish says

    Hi there,

    help please :)
    can someone tell me how using the permalink custom structure tag %slug% works?
    How, if at all, is it different to using the structure tag %postname%
    thank you, Trish

  13. Alex Zamora says

    Hi there: For about two years I had my blog hosted on a wp.com page. One week ago I finally decided to transfer it to a .org domain. That said, do you consider I should change the structure on my permalinks to a more SEO friendly one? I mean, you recomend no to do it if the site was older than 6 months, but I’m not sure if that applies for my recently transfered site. Thanks, guys. Cheers.

  14. Elizabeth says

    How do I make it so the structure would be /blog/category/post-name?

    I can’t figure out how to get /blog/ before the category.

    Thank you!!

  15. Amit Biswas says

    Hello,
    How to include the sub category base in the URL, I mean

    Website,com/category/subcategory/post

    Please help me out. Please make a video tut.

    Thanks a lot
    Amit Biswas

  16. Naomi Trevino says

    I’m a new blogger and I’ve always changed my URL. Am I not suppose to and just let it be the default? I have a new WP version so it picks up something just I thought I had to change it every time instead of leaving it how it was.

  17. Swapan Kumar Manna says

    Hello,

    Very good information and nicely touched down every single aspect. I own a News Site hosted on WordPress and using /%category%/%postname%/ in the URL structure. And I want to migrate it to Day and name (/2016/01/22/sample-post/) since I read some articles that states it will increase server up-time speed. I’ve more than 250 posts on the website and older than one year is it a good idea to change the Permalink parameter?

  18. Bala murali says

    Hello how to include the sub category base in the url, I mean
    blog/category/subcategory/post

    please help me to find the solution for this

  19. juli says

    Hi! This is great, thank you! How can I change my post structure on only the posts going forward? I don’t want to change any of the posts in the past, as I’ve been blogging for 5+ years now and I don’t want to loose any of that SEO. Currently I have the post date listed first, but I want to change that to just be the post name as the perma link for both my blog posts and my gallery.

    Thank you!

  20. Smriti says

    I have been using wordpres for over 6 months now and every time I tried changing my permalink structure from plain to /%category%/%postname%/ I get a 404 error. I hit the „Save Changes” but to not use. can you please tell me what i should do? Thank You!

    • WPBeginner Support says

      Try to backup and delete your .htaccess file. Then visit the permalinks page and click on save changes. Refresh your FTP client to confirm that WordPress has generated a new .htaccess file. This should resolve your issue.

      Administrator

  21. Nancy says

    I am getting ready to move my site from wordpress.com to wordpress.org. I have about 200 posts on my wordpress.com site. I would like to change my permalink structure on my wordpress.org site to post name. I plan to use wordpress.com’s $13 a year site redirect. Will I have problems with broken links?

  22. Berk Onal says

    I have changed permalink of my product page.

    Now i have an error message of „Duplicate meta descriptions” showing the old permalink and new permalink as duplicate.

    How to solve this problem.

  23. Andy says

    What is considered best practice (SEO wise) for internal linking? IE. Using Woocommerce I have links in my product descriptions to options that we offer. I can use the /descriptive-link/ or the /?p=321. Intuition tells me the first is better for SEO but the programing part of my brain says the latter is „safer”

  24. Jackson says

    This is a great article and its easily explained in layman’s terms. I have one issue that I cannot find a solution to and others may have encountered the same issue. The problem with my blog is that trashed pages. If I have a trashed page, how would I reinstate it without having to change the custom structure to the plain structure? I’ve basically ruined a blog with over one hundred and fifty pages grhhhhhhhhhhh! Any help would be appreciated please

    • WPBeginner Support says

      Simply go to Pages and then click on trash. Take your mouse over to the page you want to restore and click on the restore link. If you want the page to not have the URL that it previously had then you can copy its contents and paste them into a new page. Publish the new page and delete the old page.

      Administrator

  25. Nisha says

    Great article. I am in a fix now. I have a running site which is around 10 yrs old. Unfortunately my post urls have date in it. :(

    But it’s better late than never.
    If I opt now to have my permalink in new post structure, as you said, the older posts will also get changed.

    What is the best solution to do it. I can’t afford to hire somebody to do it manually. I can try my hands though.

    Is there any plugin or tool which will make my job easy?

    I am expecting a response from the readers as well, who have tried it first hand.

  26. Umer says

    I am running following site. but its traffic is not consistant. i am sending you my site link. Please suggest me how i can gain more and consistent traffic and also tell me about my mistakes. Pleasae.

  27. Shah Jahan says

    Hello,

    I am using the redirect tool by yoast to redirect my old permalink structure to the new one, it works fine, but the wordpress admin panel not working, giving me the 404 error.

    Also the child category posts are also not working. Please guide.

    My old permalink structure was /%category%/%postname%.php
    And the new one is /%postname%/

    Thanks,

  28. Gail Palubiak says

    Thank you for your article, it was very timely. I love WP-beginner!

    However, it still seems a bit over my head. I wish you included more examples. I’m in the process of putting the finishing touches on my website (pure DIY). I haven’t even started blogging on the site so I have been more concerned with how to get . Although I have no idea why %postname% worked but it did so I’m thrilled (%postname% just doesn’t seem to correctly call out the page I want). Anyway, I still don’t have a clue what is meant by „categories”. I appreciate the link you shared, however, it’s still written beyond my pay grade. It says in the article, „WordPress comes with the ability to sort your content into categories, tags, and taxonomies.” It never explains WHY this is useful. Would you mind sharing a bit more on categories from a user point of view please?

  29. Avdesh says

    Hi, I recently moved my blog from BlogSpot sub-domain to my custom domain on WordPress. After reading through the stuff available online, I chose the 'Month and Name’ permalink in the WordPress as its being mentioned that this is most similar to what BlogSpot uses and if one is transferring from BlogSpot to WordPress, then one should chose this permalink only in order to loose existing traffic and Google Page Ranking. Now, after reading your article above, it seems that the best permalink would be „Postname’ permalink. Can you please guide me whether I should change my permalink to 'Postname’ or should I keep it to 'Month and Name’ permalink?

  30. Toublanc says

    Hi, this is a very good post about permalinks, thank you.
    I have a question about it, is it possible to use regex to dynamicaly rewrite category name in the URL?

  31. Jean-Pierre says

    Hello! I use custom /%category%/%postname%/ . The categories are English and Farsi (using Arabic characters). The permalink in sitemap for farsi turns to:
    /farsi/sms-%d8%a7%d8%b3-%d8%a7%d9%85-%d8%a7%d8%b3/

    This is not helpful for SEO. Can you help please? thanks.

  32. Chuks Guide says

    Great post. I was using custom pemalinks structure just like u mentioned earlier on my site but when i changed to post name permalink i lost my previous links i shared on social media pages which resulted to error 404.

    You just made me understood why.

  33. Gerardo says

    Hi, i have a question about the permalink structure:
    Before to use wp.org i had used wp.com with date+name of post (by default).
    Now on wp.org i try to use only the name, but the social link not working, so to fix i have setting post id+name to have a post name and a little numbers before.

    Do you think it a good idea? Because all permalink working fine, just only name not working, so i think used id+name could be a good idea

    Thanks

  34. Richa Kamal says

    Hello! I had a question regarding custom tags. What if I have to use same or similar title, e.g. for outfit post? Is it a good idea to add a numeric value to the URLs as well. I am skeptical about using %post_id% as it will be sequential then and can make some other posts seem out-of-date. How about adding a random number to the URL like tumblr posts. How can we configure it to be part of URL just like categories?

  35. Dan Awontis says

    Nicely written. I was absolutely able to understand and follow everything, and to lear, which is the most important thing.

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