Enabling Apache Rewrite Module on AEM Cloud Instances
Hi All,
I have deployed my vhost file on AEM Cloud which is working fine for most part save the redirection rules.
Snippet from vhost file -
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/$ /content/xyz/us/en/home-page.html [PT,L]
RewriteRule "^/content/xyz/us/en/home-page.html" "/content/xyz/us/en/xyz-home-page.html" [PT]
# Add .html extension when extension is missing from request
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^.]*[^./])$ $1.html [R=301,L]
As you can see I have written 3 redirects here -
1. Redirecting Root URL '/' to home-page.html
2. Redirecting Page A to Page B
3. Adding .html when missing in request
None of these redirects are working.
Previously on Apache Webserver, we had to uncomment rewrite module in /etc/apache2/httpd.conf.
But with Cloud Instance we no longer have access to those configuration files.
Does Adobe enable the rewrite module by default on the webserver ?
or Does it have to be manually enabled by raising a ticket ?
Can anyone please advise on this ?