...
When the requested Host: header is unknown ahead of time, we can use the following trick to build the target URL dynamically. Using Location instead of LocationMatch avoid avoids the overhead of PCRE.
Code Block | ||
---|---|---|
| ||
<Location /> Redirect permanent "https://%{HTTP_HOST}/" </Location> |
...