Browse Source

move redirect to correct virtualhost

Max Mehl 6 months 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 @@
1 1
 <VirtualHost *:80>
2 2
   ServerName www.publiccode.eu
3 3
   Redirect permanent / https://publiccode.eu/
4
-  RedirectMatch permanent ^/zh_tw/?(.*)$ https://publiccode.eu/zh-tw/$1
5 4
 </VirtualHost>
6 5
 
7 6
 <VirtualHost *:80>
8 7
   ServerName publiccode.eu
8
+  
9
+  RedirectMatch permanent "^/zh_tw/?(.*)$" "/zh-tw/$1"
9 10
 
10 11
   ServerAdmin contact@fsfe.org
11 12
   DocumentRoot /usr/share/blog/public/

Loading…
Cancel
Save