Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions static/.htaccess
Original file line number Diff line number Diff line change
@@ -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.
Expand Down