Sitecore 5.0 API

Settings.IgnoreUrlPrefixes Property

Gets a pipe separated list of url prefixes to ignore when mapping friendly urls.

[Visual Basic]
Public Shared ReadOnly Property IgnoreUrlPrefixes As String()
[C#]
public static string[] IgnoreUrlPrefixes {get;}

Property Value

Default value: "/sitecore|/layouts/|/images/|/trace.axd"

Remarks

Normally, url requests coming in are mapped to an item and the request is redirected to the items layout page.

For example, if the item /home/news. has the layout /layouts/newslist.aspx., the url http://localhost/home/news.aspx. will be redirected to http://localhost/layouts/newslist.aspx?path=[id of the News item].

To prevent this redirection to take place for physical aspx pages, their prefixes can be added to IgnoreUrlPrefixes.

For example, if an aspx page called /forms/registration.aspx. existed, the prefix /forms/ could be added to web.config to prevent requests for this page to be redirected.

Elements must be lowercase and non-empty.

See Also

Settings Class | Sitecore.Configuration Namespace