Wiktionary: Nginx config, nbsp -> normal spaces
This commit is contained in:
parent
f5db8873af
commit
74f40bebe8
1 changed files with 18 additions and 2 deletions
|
@ -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> redirects to </span>
|
<span> redirects to </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><VirtualHost *:443>
|
<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
|
||||||
|
<VirtualHost *:443>
|
||||||
ServerName wt.dc09.ru
|
ServerName wt.dc09.ru
|
||||||
<LocationMatch "^(?!/!about)">
|
<LocationMatch "^(?!/!about)">
|
||||||
RedirectMatch /(.*) https://ru.wiktionary.org/wiki/$1
|
RedirectMatch /(.*) https://ru.wiktionary.org/wiki/$1
|
||||||
|
|
Loading…
Add table
Reference in a new issue