Vanity URL is not working when CUG is applied in AEMasCS
we have some sites where we are using closed user groups feature and SAML for authentication.
We authored few vanity urls to the pages which has cug. When we try to hit the vanity urls it is redirecting to 404.
Dispatcher rules are as follows: we have a rule for shorten URL path.
# Shorten the tenant path
RewriteRule ^/content/xyz/abc/c1/(.*)$ /$1 [NE,L,R=301]
#prefix with tenant root path
RewriteRule ^/(.*)$ /content/xyz/abc/c1/$1 [PT,L]
we have enabled,
farm:
/vanity_urls {
/url "/libs/granite/dispatcher/content/vanityUrls.html"
/file "/tmp/vanity_urls"
/delay 300
}
we have denied the urls in cache.
/0003 {
/glob "/libs/granite/dispatcher/content/vanityUrls.html"
/type "deny"
}
and enabled in Filter.
#Allow Vanity URLs
/0205 { /type "allow" /url "/libs/granite/dispatcher/content/vanityUrls.html"}
Can we use Vanity URLS with Closed User groups in AEMasCS ? If yes, please provide the steps.