diff --git a/pix-site/nginx/includes/rewrites.conf b/pix-site/nginx/includes/rewrites.conf index a0d6b31ea..30219e134 100644 --- a/pix-site/nginx/includes/rewrites.conf +++ b/pix-site/nginx/includes/rewrites.conf @@ -1,5 +1,4 @@ rewrite ^/en-gb(.*)$ /en$1 permanent; -rewrite ^/(aide|help)$ https://support.pix.org redirect; -rewrite ^/support/enseignement-superieur/etudiant-e$ https://support.pix.org redirect; -rewrite ^/support/professionnel/faq-pro$ https://pro.pix.fr/support/professionnel/faq-pro redirect; -rewrite ^/employeurs$ https://pro.pix.fr redirect; +rewrite ^/support/rubrique/etudiant-e$ https://support.monsite.org redirect; +rewrite ^/support/rubrique/faq-pro$ https://pro.monsite.fr/support/professionnel/faq-pro redirect; +rewrite ^/employeurs$ https://pro.monsite.fr redirect; diff --git a/pix-site/servers.conf.erb b/pix-site/servers.conf.erb index d609cd56e..0619dc257 100644 --- a/pix-site/servers.conf.erb +++ b/pix-site/servers.conf.erb @@ -75,3 +75,16 @@ server { add_header ETag ""; } } +server { + listen <%= ENV['PORT'] %>; + server_name support.pix.org; + + location /fr { + rewrite ^/fr$ https://pix.fr/support permanent; + rewrite ^/fr/(.*)$ https://pix.fr/support/$1 permanent; + } + location /en { + rewrite ^/en$ https://pix.org/en/support permanent; + rewrite ^/en/(.*)$ https://pix.org/en/support/$1 permanent; + } +}