diff --git a/apps/docs/public/.htaccess b/apps/docs/public/.htaccess index 8c0a040..edec4a7 100644 --- a/apps/docs/public/.htaccess +++ b/apps/docs/public/.htaccess @@ -62,8 +62,10 @@ ErrorDocument 404 /codemap/404.html SetEnvIf Request_URI "^/codemap/index\.html$" IS_CODEMAP_HOME - # expr covers REDIRECT_ rename after internal rewrites (e.g. /codemap/index.html -> /codemap/index.md). - Header always set Link "; rel=\"api-catalog\"; type=\"application/linkset+json\", ; rel=\"ai-catalog\"; type=\"application/ai-catalog+json\", ; rel=\"service-desc\"; type=\"application/json\", ; rel=\"describedby\"; type=\"application/json\", ; rel=\"describedby\"; type=\"text/plain\", ; rel=\"alternate\"; type=\"text/markdown\"" "expr=%{ENV:IS_CODEMAP_HOME} || %{ENV:REDIRECT_IS_CODEMAP_HOME}" + Header always set Link "; rel=\"api-catalog\"; type=\"application/linkset+json\", ; rel=\"ai-catalog\"; type=\"application/ai-catalog+json\", ; rel=\"service-desc\"; type=\"application/json\", ; rel=\"describedby\"; type=\"application/json\", ; rel=\"describedby\"; type=\"text/plain\", ; rel=\"alternate\"; type=\"text/markdown\"" env=IS_CODEMAP_HOME + # Internal rewrites rename request env vars with a REDIRECT_ prefix. + Header always set Link "; rel=\"api-catalog\"; type=\"application/linkset+json\", ; rel=\"ai-catalog\"; type=\"application/ai-catalog+json\", ; rel=\"service-desc\"; type=\"application/json\", ; rel=\"describedby\"; type=\"application/json\", ; rel=\"describedby\"; type=\"text/plain\", ; rel=\"alternate\"; type=\"text/markdown\"" env=REDIRECT_IS_CODEMAP_HOME + # Internal rewrites rename request env vars with a REDIRECT_ prefix. # Extensionless file needs explicit type (else text/plain fails the scan).