Solution: How to create shorter paths and urls to content objects

Summary

Information from andre1 in the technical manual reference for siteaccess settings, pathprefix, and from Dirk Schmedding on the list.

Example

You can use the PathPrefix setting in a siteaccess' site.ini to remove parts of the URL. For example:

[SiteAccessSettings] 
PathPrefix=dir

Old url: www.example.org/dir/subdir/some_content
New url: www.example.org/subdir/some_content

Or alternatively:

[SiteAccessSettings] 
PathPrefix=dir/subdir/

old url: www.example.org/dir/subdir/some_content
new url: www.example.org/some_content

PathPrefixExclude

If you have a structure like this:

www.example.org/foo
www.example.org/foo/bar
www.example.org/baz

and you set your PathPrefix like this:

[SiteAccessSettings]
PathPrefix=foo

You will then be unable to access www.example.org/baz. However, you can use PathPrefixExclude to specify URLs that are not subject to PathPrefix, like this:

[SiteAccessSettings]
PathPrefix=foo
PathPrefixExclude[]
PathPrefixExclude[]=baz

You will need to do this for every URL for which PathPrefix should not apply.

External reference