dc09.ru-old/wt/index.html

49 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2023-03-17 18:09:21 +04:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wiktionary Redirection Info</title>
<link rel="stylesheet" href="/css/pico.min.css">
</head>
<body>
<main class="container">
<hgroup>
<h2>wt.dc09.ru</h2>
<h3>
<a href="https://wt.dc09.ru/abc">
wt.dc09.ru/<b>abc</b>
</a>
<span>&#32;redirects to&#32;</span>
2023-03-17 18:09:21 +04:00
<a href="https://ru.wiktionary.org/wiki/abc">
ru.wiktionary.org/wiki/<b>abc</b>
</a>
</h3>
</hgroup>
<pre><code># 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;
}
}</code></pre>
<pre><code># Wiktionary Redirect for Apache httpd
&lt;VirtualHost *:443&gt;
2023-03-17 18:09:21 +04:00
ServerName wt.dc09.ru
&lt;LocationMatch "^(?!/!about)"&gt;
RedirectMatch /(.*) https://ru.wiktionary.org/wiki/$1
&lt;/LocationMatch&gt;
Redirect /!about https://dc09.ru/wt
&lt;/VirtualHost&gt;</code></pre>
</main>
</body>
</html>