Sling Mapping to be case insensitive


hi,

 

we have requirement insert maping sling:match= /testmapping$ , sling:redirect=/content/site1/page1.html.

 

now want sling:match should case insensitive, means if incoming request http://<host>:<port>/testmapping.html redirect http://<host>:<port>/content/site1/page1.html should redirect if incoming request http://<host>:<port>/testmapping.html  though sling:match have confgured /testmapping$

 

is there way user dont have put combination of uppercase/lowercase , 1 can handle request either coming uppercase or lowercase?

 

thanks

sameer

try "(?i)[^/]+/content/site1/page1.html"

this should match page1, page1, page1 etc..



More discussions in Archived Spaces


adobe

Comments