How to config redirect to maintenance page?

bhoang

09-10-2019

Hi all,

In AEM, I created two page content/myapp/en/maintenance.html and content/myapp/fr/maintenance.html

I want create the rule in httpd.conf for maintenance for auto redirect to maintenance page.

Example:

RewriteRule ^/ /maintenance.html [PT,L]

When a user go to myapp.com/content/myapp/en/any_page.html . It will redirect to myapp.com/content/myapp/en/maintenance.html

When a user go to myapp.com/content/myapp/fr/any_page.html . It will redirect to myapp.com/content/myapp/fr/maintenance.html

Please help me,

How to do that?

Thank you so much,

BienHV

Answers (0)