How to config redirect to maintenance page? | Community
Skip to main content
bhoang
Level 4
October 9, 2019
Solved

How to config redirect to maintenance page?

  • October 9, 2019
  • 1 reply
  • 1704 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Hamid1350

Please see the following link to Apache mod_rewrite where you can define you re-write rules:

Redirecting and Remapping with mod_rewrite - Apache HTTP Server Version 2.4

1 reply

Hamid1350Adobe EmployeeAccepted solution
Adobe Employee
October 9, 2019

Please see the following link to Apache mod_rewrite where you can define you re-write rules:

Redirecting and Remapping with mod_rewrite - Apache HTTP Server Version 2.4