How to do sling:internalRedirect pointing an internal ws call
I like to reproduce the same action I have in Apache on etc/map
RewriteRule ^/sitemap.xml http://localhost:%{ENV:aemPort}/services/sitemap/map.xml [P]
the /services/sitemap/map is a service resource.
Right now I have it like this:
jcr:primaryType="sling:Mapping"
sling:internalRedirect="/services/sitemap/map.xml"
sling:match="\[^/]+/map.xml"/>
But for some reason is not working is throwing me a 404, is like after he get the etc/map match he don't return to validate againg the servlets or service resource validation.
Also is it possible to have an internalRedirect pointing to an external domain?
something like this RewriteRule ^/page1$ http://www.external-site.com/page1.html [L,P]
Thanks