Is there a way to force mod_rewrite to rewrite URLs in the HTML it gets back from (rewritten) request URL?
2 Answers
No. mod_rewrite
does now know anything about the content; it operates purely on URIs, Headers and Environment-Variables. If you are using mod_rewrite to proxy content, you might find that mod_proxy_html is what you are looking for.
-
The current documentation for this module: httpd.apache.org/docs/2.4/mod/mod_proxy_html.html .– RichlvAug 21, 2023 at 14:13
You can also use modproxyperlhtml which has better performance and more features than mod_proxy_html