Solved
Sitemap using ACS Commons - how to remove /content/ from urls
Hello friends,
I am using ACS Commons Sitemap Servlet to generate sitemap xml which looks like..
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
Hello friends,
I am using ACS Commons Sitemap Servlet to generate sitemap xml which looks like..
I don't think ACS commons can remove it, but you can always add an resource resolver config for your runmode like below , worked fine.
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:OsgiConfig" resource.resolver.searchpath="[/apps,/libs,/apps/foundation/components/primary,/libs/foundation/components/primary]" resource.resolver.manglenamespaces="{Boolean}true" resource.resolver.allowDirect="{Boolean}true" resource.resolver.required.providers="org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory" resource.resolver.virtual="/:/" resource.resolver.mapping="[/content/project/</]" resource.resolver.map.location="/etc/map" resource.resolver.default.vanity.redirect.status="{Long}302" resource.resolver.enable.vanitypath="{Boolean}true" resource.resolver.optimize.alias.resolution="{Boolean}true" />
It will remove /content/project from generated sitemap.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.