![]() ![]() Replace the /cgi-bin prefix in the URI path with /scripts for requests to localhost, regardless of actual port the request was received on. ![]() The actual regular expression for the host.port segment is taken from the sling:match property. This entry only applies if the URI path does not start with /cgi-bin, gateway or stories because there are longer match entries. Prefix the URI paths with /content for requests to localhost, regardless of actual port the request was received on. Redirect all requests to sub domains to segment is taken from the sling:match property. Prefix the URI paths of the requests sent to this domain with the string /example ![]() Redirect all requests to the Second Level Domain to www This would define the following mapping entries: Regular Expression | - sling:internalRedirect = "/anecdotes/$1" | | - sling:internalRedirect = "/scripts" - | - sling:internalRedirect = "/example" Other resources in the tree are just used to build the mapping structure. Only resources either having a sling:redirect or sling:internalRedirect property are used as table entries. If any resource along the path has a sling:match property, the respective value is used in the corresponding segment instead of the resource name. Mapping Entry SpecificationĮach entry in the mapping table is a regular expression, which is constructed from the resource path below /etc/map. The longest matching entry string is used and the replacement, that is the redirection property, is applied. This string is then matched against mapping entries below /etc/map which are structured in the content analogously. To accomplish this a path is constructed from the request like this. Root Level Mappings apply to the request at large including the scheme, host, port and uri path. multiple paths can be given here, which are tried one after another until one resolved to a resource.
0 Comments
Leave a Reply. |