You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by fm...@apache.org on 2026/01/21 11:28:43 UTC

(camel-website) branch internal-rewrite created (now e0bc3ed6)

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

fmariani pushed a change to branch internal-rewrite
in repository https://gitbox.apache.org/repos/asf/camel-website.git


      at e0bc3ed6 Use internal rewrite on the same host instead of redirect

This branch includes the following new commits:

     new e0bc3ed6 Use internal rewrite on the same host instead of redirect

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel-website) 01/01: Use internal rewrite on the same host instead of redirect

Posted by fm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit e0bc3ed6aa62d6647aac36695d512c238b2bc4e2
Author: Croway <fe...@gmail.com>
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]