Add (Apache) httpd redirect facility to redirect producer
Add support to the redirect producer component for producing rewrite rules for Apache httpd. (Currently, the redirect producer is only capable of producing rewrite rules for nginx). Rewrite rules for httpd should be produced when the redirect facility is httpd (i.e., urls.redirect_facility=httpd).
The configuration file should begin with the following two statements:
RewriteEngine On RewriteBase /
The value of
RewriteBase should match the URL context computed from the site.url, with a default of
Each rule should appear as follows:
RewriteRule ^from$ to [R=301,L]
Any special regular expression characters in the
from value will need to be escaped.
The configuration file should be written to .htaccess at the root of the site. (Or perhaps we can write to .etc/httpd/rewrite.conf by default and use a separate facility name to activate the use of .htaccess). (To be honest, using .htaccess is discouraged, so we may not even want to support it https://www.nginx.com/resources/wiki/start/topics/examples/likeapache-htaccess/).
This issue should also appear in searches for page-aliases or alias.