AEM 6.3 - Dispatcher - Error page for multiple countries and languages | Community
Skip to main content
Level 2
Jul 24, 2017 2:57 PM UTC
Solved

AEM 6.3 - Dispatcher - Error page for multiple countries and languages

Hi,

I'm working on the error page for multiple countries and languages. I'm using the ACS common for error handling and I just had one domain for all countries and languages.

example www.mycompany.com

Content structure

/content/myproject/gb/en/....

/content/myproject/hk/en/....

/content/myproject/sg/en/....

I enabled the DispatcherPassError  0 based on the guide line from ACS Common and worked with error page under each countries and languages also.

It's worked well in publisher.

I have been created a vhost for my domain : www.mycompany.com to rewrite the content and sling mapping under /etc/map. It's ok with existing page.

The below is my rewrite rule for my domain ( www.mycompany.com)

# Append .html to requests lacking an extension

RewriteCond %{REQUEST_URI} !^/.*\.[A-Za-z0-9]+$

RewriteRule ^/(.+)$ /$1.html [R=permanent,L]

RewriteRule    ^/(.*)\.html$  /content/myproject/$1.html [PT]

My issue: when i input wrong URL from dispatcher, it didn't map with error page.

Also how i can create the mapping for error page for multiple countries and languages in dispatcher.

Any help would be greatly appreciated.

Thanks,

Thomas.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
luisr7941425Accepted solution
New Participant
Sep 14, 2017 2:13 PM UTC

Hi tinyt6510512,

Try the solution provided by Chris Millar. 

http://experiencemanaged.com/posts/efficient-error-handling-with-aem-dispatcher-and-apache-web-server.html

You might be able to use this solution in combination with the ACS Commons error handler.

https://adobe-consulting-services.github.io/acs-aem-commons/features/error-handler/index.html

Hope this helps.

Luis

4 replies

luisr7941425Accepted solution
New Participant
Sep 14, 2017 2:13 PM UTC

Hi tinyt6510512,

Try the solution provided by Chris Millar. 

http://experiencemanaged.com/posts/efficient-error-handling-with-aem-dispatcher-and-apache-web-server.html

You might be able to use this solution in combination with the ACS Commons error handler.

https://adobe-consulting-services.github.io/acs-aem-commons/features/error-handler/index.html

Hope this helps.

Luis

Translate
Level 2
Jul 26, 2017 11:28 AM UTC

Hi rgrymm66,

Thanks for your support.

Yes, I enabled it also.

Thanks,

Thuong.

Translate
rgrym666
New Participant
Jul 26, 2017 11:15 AM UTC

Have you switched on DispatcherUseProcessedURL 1​?

Translate
kautuk_sahni
Employee
Jul 25, 2017 8:43 AM UTC

MC Stuff​ any help here?

Translate
Kautuk Sahni