The default structure of permalinks is www.website.com/2018/05/15/sample-post/. If this structure is used, the date part of the permalink will only be included in URLs for posts – pages will have the URL www.website.com/sample-page/. If a page has the same name as another page, or if a post has the same name as a post published on the same date (with the default permalink structure), a number is added to the end of the name in the URL to distinguish them from each other.
You can change the permalink settings in “Settings” → “Permalinks”. The settings page includes a handful of common settings for permalinks, along with a field that allows you to create a custom structure. The permalinks should always include the name of the content. It makes the URLs more readable and descriptive, and it’s also beneficial for your ranking in search engines.
You can edit the permalink of a specific post or page by opening it in the editor and clicking its URL in the sidebar. A field will appear that allows you to change the slug, the last part of the permalink. Then save the post or page to make the change take effect.