Kentico CMS 6.0 Developer's Guide

URLs

URLs

Previous topic Next topic Mail us feedback on this topic!  

URLs

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

URLs tab fields:

 

Document alias

The unique name of the document in the given section of the website. This name doesn't change when you modify the document name and it's used:

1.To define the AliasPath, which is the unique path to the document. The developers typically use the AliasPath in the Path property of the web parts and controls.

 

2.For the URL of the document. The URL of the document is like
www.kentico.com/products/cms.aspx
where /products/cms is the alias path of the document.

 

Forbidden characters

 

Some characters are forbidden in URLs and thus they are replaced with a safe character (by default, it's dash -). You can specify the forbidden characters and the replacement character in Site Manager -> Settings -> URLs and SEO, in values "Forbidden characters replacement" and "Forbidden URL characters".

Document URL path

If you want to use a specific URL for a given document that doesn't depend on the document AliasPath, you need to check the box Use custom URL path and enter the value, such as:

/cms-for-asp-net

The URL path must always start with /. Then, the document is accessible through two URLs:

www.kentico.com/products/cms.aspx

www.kentico.com/cms-for-asp-net.aspx

 

The URL path is useful if you need to define a short URL of some page or if you need to optimize the URL for search engines.

 

The URL path is, unlike the alias path, culture-specific. It means if you use URL paths:

/product (for English version)

/produkt (for German version)

 

then when the user comes to /produkt.aspx, the language of the website is automatically switched to German.

URL extensions

Default URL extensions are defined in Site Manager -> Settings -> URLs and SEO -> Friendly URL extensions. If you check the Use custom URL extensions check box, you can define other extensions under which the document can be accessed.

 

In case that the option is disabled, physical file extensions can also be used for cms.file documents.

 

Multiple extensions can be entered divided by a semicolon. If you enter a semicolon without any extension, extensionless URLs will be allowed.

 

Example: entering .htm;; for a document with a URL path set to /test will allow the document to be accessed through both of the URLs below:

 

<site path>/test.htm

<site path>/test

 

For this to work, you also need to to set up your IIS for handling 404 and 405 errors as described in the Installation and deployment -> Additional configuration tasks -> Custom URL extensions chapter.

Track campaign

A web analytics campaign with the same name as entered here will be created on the first access to the page through the entered URL.

Document aliases

This section displays a list of other document aliases under which the document can be accessed. One document can have an unlimited number of aliases. You can edit (Edit) and delete (Delete) aliases in the list or create a new alias using the 'Add new alias' link.