This is an automated email from the ASF dual-hosted git repository. fmariani pushed a commit to branch redirect-markdown in repository https://gitbox.apache.org/repos/asf/camel-website.git
commit 9a0a36705825cf8f268275487718c312d68d6761 Author: Croway <[email protected]> AuthorDate: Fri Jan 16 10:15:18 2026 +0100 Redirect rule, when the header Accept: text/markdown is set, than redirect to the .md page --- static/.htaccess | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/.htaccess b/static/.htaccess index 2341f55d..1ae7247e 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -1,6 +1,12 @@ # Redirect security advisories to new location RewriteEngine on RewriteBase "/" + +# Content negotiation for LLM-friendly Markdown +# When Accept header requests text/markdown, redirect .html to .md +RewriteCond %{HTTP_ACCEPT} text/markdown [NC] +RewriteRule ^(.+)\.html$ /$1.md [R=303,L] + RewriteRule "^security-advisories.data/(.+)$" "security/$1" [R=permanent,L] # Customize what Apache returns to the client in case of an error.
