Expand my Community achievements bar.

SOLVED

need error page handler in acs common for 2 domain with seprate 404 page

Avatar

Level 3

Hi ,

 
I have 2 domains and how to handle the same in acs common error handler.
 
each domain has a separate 404 page.
 
Currently i have set to one of the error page. Please could you suggest how it could be  done.
 
The  setting i have done  in acs common is
 
I am using the below error handler for 404 page
 
/apps/project/config.publish/com.adobe.acs.commons.errorpagehandler.impl.ErrorPageHandlerImpl
 
jcr:primaryType Name sling:OsgiConfig
cache.serve-authenticated Boolean true
cache.ttl Long 300
enabled Boolean true
error-page.system-path String /content/website/404
not-found.behavior String respond-with-404
 
 
Thanks
1 Accepted Solution

Avatar

Correct answer by
Employee

error-page.system-path  "is the absolute path to system Error page resource to serve if no other more appropriate error pages can be found."

 

This is part of the advanced usage configs. In the earlier sections of [1], there are details on creating error pages per content tree: "Ex. /content/geometrixx/en/errors/404". Would that not suffice? 

[1]http://adobe-consulting-services.github.io/acs-aem-commons/features/errorpagehandler.html

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

error-page.system-path  "is the absolute path to system Error page resource to serve if no other more appropriate error pages can be found."

 

This is part of the advanced usage configs. In the earlier sections of [1], there are details on creating error pages per content tree: "Ex. /content/geometrixx/en/errors/404". Would that not suffice? 

[1]http://adobe-consulting-services.github.io/acs-aem-commons/features/errorpagehandler.html

Avatar

Level 3

under mywebsite in the  /content/website_trial/en_GB i have added the page property

errorPages    String    /content/website_trial/en_GB/error/404

Now if i hit the below it must redirect to /content/website_trial/en_GB/error/404 but it goes to error-page.system-path /content/website/404
http://abc.com/website_trial/en_GB/trail/events/events.html 

Could you please let me know as how this could be sloved

Avatar

Employee

Hi,

Did you follow the walk-through video on how to setup the error handler functionality: http://adobe-consulting-services.github.io/acs-aem-commons/features/errorpagehandler.html

Regards,

Opkar