Page URL (canonical URL )

Undraw My Documents

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: https://combostrap.com/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 ?




Showcase yourself and your brand

Get free news, tips, and tricks
to create a remarkable experience for your readers.




Related HowTo's
Dokuwiki Admin Window Default Template
How to install Combo ?

Combo is the bundle of components that complements the strap template. This step shows you how to install it.


Recommended Pages
Undraw Through The Park
ComboStrap - Request Router

The request router is the entry point of all requests made on your website. It will redirect them to the correct page, even protect your website against bad behavior. When you choose a permanent...
Undraw Through The Park
ComboStrap Routing - Redirection

ComboStrap Routing - Redirection A redirection occurs when a missing/non-existing page is requested. The processing and the type of redirections executed are explained below. ComboStrap performs...
Undraw Through The Park
ComboStrap Routing - Transparent Redirect

A transparent redirect is a redirection that shows the content of another page transparently (A visitor or a search engine bot will not see the redirection). It happens when the requested URL matches:...
Undraw Through The Park
ComboStrap URL - Page Alias

URL A page alias is an extra path value for a page. If a page has an alias that corresponds to the path of a missing page, a redirection is performed. You can see them as symlink or shortcut for a...
Undraw Growth Chart R99m
How ComboStrap tackles SEO to bring you more visitors?

seoSearch engine optimization (or SEO) is the process of making your website optimized for search/enginesearch engine (Google, Bing, ...) to get to the top of their result. On a website level, it means:...
Undraw File Analysis 8k9b
How to add Frontmatter to your pages

A frontmatter can be added to your pages to store your metadata. This page shows you how to enable this functionality.
Nice Url Parameters
How to configure nice URL ?

This article shows you how to configure your installation to show nice url to your users.
Undraw Through The Park
How to create a Permalink ?

Permalinks are short links that will be permanently accessible even if the page is moved.
Undraw My Documents
ComboStrap Page Metadata - Canonical URL

A canonical is a short unique path identifier for a page on your website. The canonical is used to create a named permalink in order to get quickly to a page without knowing its full path Example:...
Undraw My Documents
Page - Slug Path

The slug is a custom page path that permits to customize at will your page url (if you choose to). With the slug value and a page url configuration of slug, the url of your page will be: where pageid...



Task Runner