diff --git a/wt/index.html b/wt/index.html index 1869cf6..510bf67 100644 --- a/wt/index.html +++ b/wt/index.html @@ -14,13 +14,29 @@ wt.dc09.ru/abc - redirects to + redirects to ru.wiktionary.org/wiki/abc -
<VirtualHost *:443>
+ # Wiktionary Redirect for Nginx
+server {
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+
+ server_name wt.dc09.ru;
+
+ location /!about {
+ return 301 https://dc09.ru/wt;
+ }
+
+ location / {
+ rewrite ^/(.*) https://ru.wiktionary.org/wiki/$1;
+ }
+}
+ # Wiktionary Redirect for Apache httpd
+<VirtualHost *:443>
ServerName wt.dc09.ru
<LocationMatch "^(?!/!about)">
RedirectMatch /(.*) https://ru.wiktionary.org/wiki/$1