Configure URL handling

This section is about how incoming requests are handled.

Every time a request reaches Litium, the URL handler determines if it is a request for a Litium page or something else - for example a CSS-file or an image. This process reduces the performance slightly.

In the case of for example requests for CSS files, you have the possibility to configure Litium not to handle those request, rather just pass them along. For this reason it could be a good idea to exclude any folders that are requested often from the URL handling. If you exclude a folder it is not possible to create a root page with that folder name as the URL name.

The following words are not possible to use in the first part of a URL name

  • Litium
  • Site
  • Bin
  • App_Code
  • App_Data
  • App_GlobalResources
  • App_LocalResources
  • App_WebResources
  • App_Browsers
  • Theme

Define your own disabled routing paths

In web.config, in the element litium/studio/cms/routing it is possible to add routes that should be disabled. Just add the element disabledRoutingPath along with the value that should be disabled.

For example:
<disabledRoutingPath path="MyFolder"/>

Characters that are not allowed in URL names

/ \ . , ; : + * ' § ½ " < > | ! ? $ & = @ # % { } ^ ~ [ ]`´¨¤

400 error when the URL is too long (>260 characters)

Due to a limitation in IIS the maximum URL length is 260 characters. If the URL exceeds this length a 400 error will occur. You can solve this by installing two Microsoft hotfixes. Read more in this blog post:

Is this page helpful?
Thank you for your feedback!