This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new eb97f5f8 Redirect rule, when the header Accept: text/markdown is set, 
than redirect to the .md page (#1476)
eb97f5f8 is described below

commit eb97f5f83cdc360c8609a2e1037c419dcca2169e
Author: Federico Mariani <[email protected]>
AuthorDate: Fri Jan 16 15:03:22 2026 +0100

    Redirect rule, when the header Accept: text/markdown is set, than redirect 
to the .md page (#1476)
---
 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.

Reply via email to