1) Add html to urls not ending with html and do a redirect
2) Check if a header exists and do PT redirect say home to employee specific home page
3) When a request comes from specific host and starts with a specific path redirect to another domain
4) Geographic blocking sample, if user is from US AND (from California OR Texas), then block access with 403 Forbidden error. Here it first sets the env var with a cookie value (eg. eaem_route_data=Country=US&State=CA) and later blocks the request checking its content
5) Show warning page when a cookie eaem_route_data exists with value CLOCKSTATUS=NOT_FOUND and employeeType=H, by extracting the value into env var eaem_route_data_env_var Say you'd like to view the clock warning page but you donot fall in that condition add the parameter clock_status=not_found in url. In both these cases it sets the env var clockNotFound value to 1 and later checks if the value is 1 and redirects user to a warning page
6) Redirect specific paths to a different site using regular expressions
Examples of what gets redirected:
/content/eaem/some.html → https://for-experience-aem.mysite.com/content/eaem/some.html
/content/experience-aem/ → https://for-experience-aem.mysite.com/content/experience-aem/
/content/dam/eaem/i.jpg → https://for-experience-aem.mysite.com/content/dam/eaem/i.jpg
What stays on the current site:
/content/eaem/for-this-site.html (excluded)
/content/eaem/for-this-site/anything (excluded)
7)
No comments:
Post a Comment