Browse Source

move redirect to correct virtualhost

pull/302/head
Max Mehl 1 year ago
parent
commit
14b1310734
Signed by: max.mehl <max.mehl@fsfe.org> GPG Key ID: 2704E4AB371E2E92
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      000-default.conf

+ 2
- 1
000-default.conf View File

@@ -1,11 +1,12 @@
<VirtualHost *:80>
ServerName www.publiccode.eu
Redirect permanent / https://publiccode.eu/
RedirectMatch permanent ^/zh_tw/?(.*)$ https://publiccode.eu/zh-tw/$1
</VirtualHost>

<VirtualHost *:80>
ServerName publiccode.eu
RedirectMatch permanent "^/zh_tw/?(.*)$" "/zh-tw/$1"

ServerAdmin contact@fsfe.org
DocumentRoot /usr/share/blog/public/

Loading…
Cancel
Save