This is an automated email from the ASF dual-hosted git repository.
fmariani 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 04c95b05 Use internal rewrite on the same host instead of redirect
04c95b05 is described below
commit 04c95b05b747a869826c270ced6ce9d987c079d5
Author: Croway <[email protected]>
AuthorDate: Wed Jan 21 12:28:31 2026 +0100
Use internal rewrite on the same host instead of redirect
---
static/.htaccess | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/static/.htaccess b/static/.htaccess
index 1ae7247e..d2253834 100644
--- a/static/.htaccess
+++ b/static/.htaccess
@@ -3,9 +3,9 @@ RewriteEngine on
RewriteBase "/"
# Content negotiation for LLM-friendly Markdown
-# When Accept header requests text/markdown, redirect .html to .md
+# When Accept header requests text/markdown, serve .md instead of .html
RewriteCond %{HTTP_ACCEPT} text/markdown [NC]
-RewriteRule ^(.+)\.html$ /$1.md [R=303,L]
+RewriteRule ^(.+)\.html$ $1.md [L]
RewriteRule "^security-advisories.data/(.+)$" "security/$1" [R=permanent,L]