diff --git a/static/.well-known/nodeinfo/.htaccess b/static/.well-known/nodeinfo/.htaccess new file mode 100644 index 0000000..2bce6d4 --- /dev/null +++ b/static/.well-known/nodeinfo/.htaccess @@ -0,0 +1,2 @@ +# GoToSocial split-domain: nodeinfo на apex → динамический ответ инстанса. +RedirectMatch 301 ^/\.well-known/nodeinfo(.*)$ https://social.dedinit.ru/.well-known/nodeinfo$1 \ No newline at end of file diff --git a/static/.well-known/webfinger/.htaccess b/static/.well-known/webfinger/.htaccess new file mode 100644 index 0000000..ccb0bc6 --- /dev/null +++ b/static/.well-known/webfinger/.htaccess @@ -0,0 +1,5 @@ +# GoToSocial split-domain: apex (dedinit.ru) → динамический webfinger на хост-инстанс. +# Без этого клиенты (Tusky/Mastodon) резолвят @user@dedinit.ru через статический +# ответ и показывают длинный адрес @user@social.dedinit.ru. +# mod_alias RedirectMatch сохраняет query (?resource=...) и отдаёт 301. +RedirectMatch 301 ^/\.well-known/webfinger(.*)$ https://social.dedinit.ru/.well-known/webfinger$1 \ No newline at end of file