Slugs & permalinks (WordPress)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

Permalinks zijn de default URL's voor posts (inclusief afbeeldingen). Slugs zijn aangepaste/geoptimaliseerde URL's voor de posts. Beiden hebben hun functie.

Permalinks

[1]:

Permalinks are the permanent URLs of your posts, pages,
categories, and other archive pages on your website.
These URLs are permanent and should never be changed — 
hence the name permalink.

Permalinks help to create a URL structure that is easy
for both humans and search engines to understand and share.

* A permalink is used when another blogger wants to
  link to your article.
* You share the permalink when you want to share
  your content on social media. 
* When Google wants to index your article, they use
  the permalink of the content. 
* When you want to share a blog post with your friend,
  you send the permalink of your content in an email.

De structuur voor permalinks kun je specificeren via wp-admin » Settings » permalinks. Ik geloof dat de individuele permalinks van sites nergens worden opgeslagen in de database, maar dynamisch worden aangemaakt wanneer ze nodig zijn.

Slugs

  • WordPress-slugs zijn altijd in onderkast
  • Standaard worden gewone streepjes gebruikt. Geen liggende streepjes.

Zie ook

Bronnen