Skip to content

Commit

Permalink
Merge pull request #672 from 1024pix/tech/redirect-support
Browse files Browse the repository at this point in the history
[TECH] : Update redirect to support
  • Loading branch information
alipix authored Jun 21, 2024
2 parents e7f454b + 7883a1b commit 0dab54d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pix-site/nginx/includes/rewrites.conf
Original file line number Diff line number Diff line change
@@ -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;
13 changes: 13 additions & 0 deletions pix-site/servers.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 0dab54d

Please sign in to comment.