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.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @tejaswi_aem,
Could you try this?
Remove this line from Dispatcher:
Keep this one (internal rewrite only):
Make sure the CUG login page (eg. /content/xyz/abc/c1/en/login.html) is NOT protected by CUG.
In your /vanity_urls config, make sure the target path (eg./content/.../secure/page.html) is published.
In Dispatcher filters, allow:
The vanity must be authored on the actual page (Properties -> Advanced -> Vanity URL).
Hi @tejaswi_aem,
Could you try this?
Remove this line from Dispatcher:
Keep this one (internal rewrite only):
Make sure the CUG login page (eg. /content/xyz/abc/c1/en/login.html) is NOT protected by CUG.
In your /vanity_urls config, make sure the target path (eg./content/.../secure/page.html) is published.
In Dispatcher filters, allow:
The vanity must be authored on the actual page (Properties -> Advanced -> Vanity URL).
@tejaswi_aem Did you find the suggestions helpful? If you need more information, please let us know. If a response resolved your issue, kindly mark it as correct to help others in the future. Alternatively, if you discovered a solution on your own, we'd appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies