Wiktionary: Nginx config, nbsp -> normal spaces

This commit is contained in:
DarkCat09 2023-03-24 17:26:15 +04:00
parent f5db8873af
commit 74f40bebe8

View file

@ -14,13 +14,29 @@
<a href="https://wt.dc09.ru/abc"> <a href="https://wt.dc09.ru/abc">
wt.dc09.ru/<b>abc</b> wt.dc09.ru/<b>abc</b>
</a> </a>
<span>&nbsp;redirects to&nbsp;</span> <span>&#32;redirects to&#32;</span>
<a href="https://ru.wiktionary.org/wiki/abc"> <a href="https://ru.wiktionary.org/wiki/abc">
ru.wiktionary.org/wiki/<b>abc</b> ru.wiktionary.org/wiki/<b>abc</b>
</a> </a>
</h3> </h3>
</hgroup> </hgroup>
<pre><code>&lt;VirtualHost *:443&gt; <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;
ServerName wt.dc09.ru ServerName wt.dc09.ru
&lt;LocationMatch "^(?!/!about)"&gt; &lt;LocationMatch "^(?!/!about)"&gt;
RedirectMatch /(.*) https://ru.wiktionary.org/wiki/$1 RedirectMatch /(.*) https://ru.wiktionary.org/wiki/$1