Page URL (canonical URL)

About

The page url is the unique official URL of a page and is also known in the SEO world as the canonical url.

Canonical

This url:

Permanent

When you choose a permanent url type, ComboStrap will add a short page identifier based on the page id at the end.

Even if you change the type or content of the URL, the router will always be able to find the page.

The syntax is:

https://domain.com/a-description/or-path-that-is-not-relevant-pageIdentifier
  • Otherwise:
https://domain.com/doku.php?id=a-description:or-path-that-is-not-relevant-pageIdentifier

Example

This page has the slug :canonical-url and has the permanent url: /page/canonical-url-4kxbb9fd

Type

The page URL may get the following format:

Type URL Path Permanent Default
page path the page path No Na
permanent page path the page path and the short page identifier Yes Na
canonical path the canonical path No page path
permanent canonical path the canonical path and the short page identifier Yes permanent page path
slug the slug path and the short page identifier Yes page title in slug format
hierarchical slug the page name of all parent home pages, the slug path and the short page identifier Yes Na
homed slug the page name of the parent home page, the slug path and and the short page identifier Yes Na

You may choose the format with the page url type configuration

Configuration

pageUrlType

The page URL type may be chosen with the pageUrlType configuration.

If you choose a permanent URL, the page id becomes the only identifier.

The metadata should then be backed up.

  • if you have enabled the frontmatter, you may only backup your page
  • otherwise you need to backup also the page metadata directory

Relative / Absolute

When using a page path URL, you can change the URL path via the canonical configuration between:

  • relative (default):
./docs/page/url
  • or absolute (the domain is added)
https://example.com/docs/page/url

For all other type, the URL is absolute.

Nice

You can configure your installation to show nice page URL: How to configure nice URL

Powered by ComboStrap