Skip to content

Commit

Permalink
Merge pull request #90 from wcm-io-devops/feature/aem-dispatcher-clou…
Browse files Browse the repository at this point in the history
…d-https-root-redirect

Role aem-dispatcher-cloud: Use https in rewriteHomepageRedirect
  • Loading branch information
tobias-richter authored Jul 13, 2023
2 parents a6c62fe + 8135ea6 commit b067db5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
<body>

<release version="2.0.2" date="not released">
<action type="fix" dev="trichter" issue="90">
Role aem-dispatcher-cloud: Use https in rewriteHomepageRedirect to avoid unnecessary http redirect.
</action>
</release>

<release version="2.0.0" date="2023-07-03">
<action type="add" dev="sseifert">
Role aem-dispatcher-cloud: Add httpd.headers.htmlExpirationTimeSec parameter to control the default expiration time for text/html responses.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ RewriteRule ^/(.+)$ /content/$1 [PT,L]
{{~#block "rewriteHomepageRedirect"}}
{{~#if httpd.rootRedirect.url}}
# Root redirect to homepage
RewriteRule ^/$ {{httpd.rootRedirect.url}} [R={{httpd.rootRedirect.httpStatus}},L]
RewriteRule ^/$ https://%{HTTP_HOST}{{httpd.rootRedirect.url}} [R={{httpd.rootRedirect.httpStatus}},L]
{{/if ~}}
{{/block}}

Expand Down

0 comments on commit b067db5

Please sign in to comment.