From fb8947ad419ba70ef5d0d8b2c07bd7a4cda1c92e Mon Sep 17 00:00:00 2001 From: Equipe Web Date: Mon, 6 Sep 2021 13:30:25 +0200 Subject: [PATCH 01/13] DigitalRecruiter.php commented line on prod --- crons/DigitalRecruiter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 crons/DigitalRecruiter.php diff --git a/crons/DigitalRecruiter.php b/crons/DigitalRecruiter.php old mode 100644 new mode 100755 index 69f9b3eb..06d9c41d --- a/crons/DigitalRecruiter.php +++ b/crons/DigitalRecruiter.php @@ -12,7 +12,7 @@ function DRPerformProcess(){ // récupération des jobs DRGetDailyJobs(0, 0); // envoi des alertes - DRMailAlert(); + //DRMailAlert(); die(); } From 40524b92ce7e67382b727a4d5386df6db1234a6c Mon Sep 17 00:00:00 2001 From: Equipe Web Date: Mon, 6 Sep 2021 13:33:49 +0200 Subject: [PATCH 02/13] .htaccess on prod --- .htaccess | 174 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 166 insertions(+), 8 deletions(-) mode change 100644 => 100755 .htaccess diff --git a/.htaccess b/.htaccess old mode 100644 new mode 100755 index aa6512f9..865a7b2f --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,33 @@ +# BEGIN YOAST REDIRECTS + +RewriteEngine On +Redirect 301 "/en/espace-presse" "/en/press-space" +Redirect 301 "/en/nos-marques" "/en/our-brands" +Redirect 301 "/en/nous-connaitre" "/en/know-us" +Redirect 301 "/en/nos-engagements/bien-nourrir" "/en/nos-engagements/feed-well" +Redirect 301 "/en/nos-engagements" "/en/our-commitments" +Redirect 301 "/en/our-commitments/elever-durablement" "/en/our-commitments/sustainable-farming" +Redirect 301 "/en/our-commitments/mieux-vivre-ensemble" "/en/our-commitments/living-and-working-together" +Redirect 301 "/en/our-commitments/respecter-la-terre" "/en/our-commitments/respecting-the-land" +Redirect 301 "/en/nous-rejoindre" "/en/join-us" +Redirect 301 "/en/nous-contacter" "/en/contact-us" +Redirect 301 "/en/know-us/notre-pole-traiteur" "/en/know-us/our-catering-division" +Redirect 301 "/en/nos-metiers" "/en/our-jobs" +Redirect 301 "/en/our-commitments/respecting-the-land" "/en/our-commitments/respecting-the-nature" +Redirect 301 "/en/know-us/notre-pole-volaille-france__trashed-2" "/en/know-us/notre-pole-volaille-france-3" +Redirect 301 "/en/join-us__trashed" "/en/join-us" +Redirect 301 "/en/mentions-legales" "/en/legal-notice" +Redirect 301 "/en/politique-de-confidentialite" "/en/privacy-policy" +Redirect 301 "/en/know-us/notre-pole-volaille-france" "/en/know-us/our-france-poultry-division" +Redirect 301 "/en/know-us/notre-pole-export-international" "/en/know-us/our-export-international-division" +Redirect 301 "/filieres/belgique-kiplama-yann-caret" "/filieres/belgique-kiplama-toon-kweens" +Redirect 301 "/en/our-commitments/feed-well" "/en/our-commitments/providing-healthy-food" +Redirect 301 "/en/join-us" "/en/careers" +Redirect 301 "/en/know-us/our-catering-division" "/en/know-us/our-convenience-food-division" +Redirect 301 "/filieres/pole-volaille-snv-laurent-girard" "/filieres/pole-volaille-snv-arnaud-boinard" +Redirect 301 "/filieres/pole-traiteur-marques-marie-traditions-dasie-weight-watchers-damien-jeannot" "/filieres/pole-traiteur-plats-cuisines-marie-traditions-dasie-weight-watchers-damien-jeannot" + +# END YOAST REDIRECTS # protection contre la lecture des répertoires Options All -Indexes @@ -405,7 +435,8 @@ RedirectPermanent /en//en/rubrique/key-figures/simplified-balance-sheet/4244/ ht RedirectPermanent /en//en/rubrique/ldcs-culture-and-values/culture-and-values-ldc/3568/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en//en/rubrique/medias-en/kit-media/3560/ https://www.ldc.fr/en/press-space/ RedirectPermanent /en//en/rubrique/medias-en/photos/3562/ https://www.ldc.fr/en/press-space/ -RedirectPermanent /en//en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /en//en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en//en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/careers/ RedirectPermanent /en//en/rubrique/our-projects/international-ambitions/3577/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en//en/rubrique/our-projects/our-corporate-vision/3574/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en//en/rubrique/quality-signs/les-signes-de-qualite/3616/ https://www.ldc.fr/en/our-commitments/feed-well/ @@ -415,7 +446,8 @@ RedirectPermanent /en//en/rubrique/shareholder-guide/comment-devenir-actionnaire RedirectPermanent /en//en/rubrique/shareholder-guide/your-shareholder-rights/3668/ https://www.ldc.fr/en/finance/ RedirectPermanent /en//en/rubrique/social-en/health-safety/3548/ https://www.ldc.fr/en/our-commitments/living-and-working-together/ RedirectPermanent /en/accueil/ https://www.ldc.fr/en/ -RedirectPermanent /en/careers/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /en/careers/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/join-us/ https://www.ldc.fr/en/careers/ RedirectPermanent /en/en/rubrique/corporate-governance/middlenext-code/3676/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/en/rubrique/corporate-governance/presentation-of-the-ldc-governance/3673/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/en/rubrique/environment/3-packing-waste-nothing-is-lost-everything-is-transformed/3641/ https://www.ldc.fr/en/our-commitments/respecting-the-nature/ @@ -432,7 +464,8 @@ RedirectPermanent /en/en/rubrique/ldc-group/organigramme-du-groupe/4422/ https:/ RedirectPermanent /en/en/rubrique/ldcs-culture-and-values/culture-and-values-ldc/3568/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/en/rubrique/medias-en/kit-media/3560/ https://www.ldc.fr/en/press-space/ RedirectPermanent /en/en/rubrique/medias-en/photos/3562/ https://www.ldc.fr/en/press-space/ -RedirectPermanent /en/en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /en/en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/careers/ RedirectPermanent /en/en/rubrique/our-projects/international-ambitions/3577/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/en/rubrique/our-projects/our-corporate-vision/3574/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/en/rubrique/quality-signs/les-signes-de-qualite/3616/ https://www.ldc.fr/en/our-commitments/feed-well/ @@ -449,9 +482,12 @@ RedirectPermanent /en/medias/ https://www.ldc.fr/en/press-space/ RedirectPermanent /en/nos-activites/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/nos-activites/feed/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/our-engagements/ https://www.ldc.fr/en/our-commitments/ -RedirectPermanent /en/rubrique/careers/joining-us/ https://www.ldc.fr/en/join-us/ -RedirectPermanent /en/rubrique/careers/joining-us/open-application/ https://www.ldc.fr/en/join-us/ -RedirectPermanent /en/rubrique/careers/our-hr-policy/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /en/rubrique/careers/joining-us/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/rubrique/careers/joining-us/ https://www.ldc.fr/en/carrers/ +#RedirectPermanent /en/rubrique/careers/joining-us/open-application/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/rubrique/careers/joining-us/open-application/ https://www.ldc.fr/en/carrers/ +#RedirectPermanent /en/rubrique/careers/our-hr-policy/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/rubrique/careers/our-hr-policy/ https://www.ldc.fr/en/carrers/ RedirectPermanent /en/rubrique/careers/our-jobs/ https://www.ldc.fr/en/our-jobs/ RedirectPermanent /en/rubrique/careers/our-jobs/?metierid=4211 https://www.ldc.fr/en/our-jobs/ RedirectPermanent /en/rubrique/careers/our-jobs/?metierid=4214 https://www.ldc.fr/en/our-jobs/ @@ -473,7 +509,8 @@ RedirectPermanent /en/rubrique/careers/our-jobs/support/ https://www.ldc.fr/en/o RedirectPermanent /en/rubrique/careers/our-jobs/support/?metierid=4208 https://www.ldc.fr/en/our-jobs/ RedirectPermanent /en/rubrique/careers/our-jobs/support/?metierid=4216 https://www.ldc.fr/en/our-jobs/ RedirectPermanent /en/rubrique/careers/our-jobs/support/?metierid=4221 https://www.ldc.fr/en/our-jobs/ -RedirectPermanent /en/rubrique/careers/recruitment-process/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /en/rubrique/careers/recruitment-process/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/rubrique/careers/recruitment-process/ https://www.ldc.fr/en/carreers/ RedirectPermanent /en/rubrique/finance-en/corporate-governance/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/rubrique/finance-en/inverstors-introduction/ https://www.ldc.fr/en/finance/ RedirectPermanent /en/rubrique/finance-en/key-figures/ https://www.ldc.fr/en/finance/ @@ -729,7 +766,8 @@ RedirectPermanent /rubrique/quality-signs/les-signes-de-qualite/3616/ https://ww RedirectPermanent /rubrique/recherche-et-developpement/recherche-developpement/1/ https://www.ldc.fr/nos-engagements/ RedirectPermanent /rubrique/recherche-et-developpement-es/bonjour-tout-le-monde/32/ https://www.ldc.fr/nos-engagements/ RedirectPermanent /rubrique/recherche-et-developpement-pl/bonjour-tout-le-monde/33/ https://www.ldc.fr/nos-engagements/ -RedirectPermanent /rubrique/recruitment-process/our-hr-policy/3647/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /rubrique/recruitment-process/our-hr-policy/3647/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /rubrique/recruitment-process/our-hr-policy/3647/ https://www.ldc.fr/en/careers/ RedirectPermanent /rubrique/regulated-information/actualite/3537/?exo=2016&doc=302 https://www.ldc.fr/en/finance/ RedirectPermanent /rubrique/regulated-information/actualite/3537/?exo=2018&doc=302 https://www.ldc.fr/en/finance/ RedirectPermanent /rubrique/securite-alimentaire-et-tracabilite/securite-alimentaire-et-tracabilite/563/ https://www.ldc.fr/nos-engagements/bien-nourrir/ @@ -740,6 +778,126 @@ RedirectPermanent /rubrique/social-en/health-safety/3548/ https://www.ldc.fr/en/ RedirectPermanent /societe/celtys/ https://www.ldc.fr/nous-connaitre/ RedirectPermanent /societe/celvia-saint-jean-brevelay/ https://www.ldc.fr/nous-connaitre/ RedirectPermanent /societe/la-toque-angevine-segre https://www.ldc.fr/nous-connaitre/ +RedirectPermanent /type/ardevol/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/alimab/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/les-volailles-de-blancafort/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-viriat/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/la-toque-angevine-segre/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/les-charmilles/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-cpe/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/chapon-bressan/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-plateforme-logistique-saint-fulgent/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/drop-kepno/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/farmor-guingamp/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/les-volailles-de-keranna/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/celvia-saint-jean-brevelay-dinde/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-bourgogne/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-unite-st-laurent/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/aliments-richard/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-dpe/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/tranzit-food-nyirgelse/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marcel-favreau/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/couvoir-galina-vendee/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-plateforme-logistique-les-essarts/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-siege-et-usine-saint-fulgent/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/drop-ostrzeszow/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/distrinor/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marnevall-3/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/volailles-remi-ramon/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/roldrob/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-bretagne/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/verron/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-plb/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-briec/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/celvia-saint-jean-brevelay-elabores/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/bureau-commercial-londres/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/luche-traditions-volaille/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-an-elaborados-site-de-avila/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/huttepain-aliments/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-grand-froid/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/huttepain-bretagne/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/plateforme-logistique-de-galliwen-plg/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-rungis-siege/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/cailles-robin/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/doux-farmor/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/stam-poiraud/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/sbp-societe-bressanne-de-production/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/bureau-commercial-kehl/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/palmidor/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-cepa/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-les-essarts/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/les-fermiers-de-lardeche/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/drosed/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-volabraye/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/betina/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/guillet/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/galeo/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/huttepain-vendee/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/polpasz/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-les-fourmis/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/sedar/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/stc-transports/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/regalette-saint-nolff/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/couvoir-perrot/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-foods/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-chace/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/agis-tarare-plateforme/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-chateau-gontier/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/espri-restauration-wissous/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/corico/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/volailles-de-bretagne/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/couvoir-galina-perrot/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/espri-restauration-roeze/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/guillot-cobreda-romenay/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/bureau-commercial-barcelone/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/tranzit-food-nyirbator/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/bureau-commercial-bruxelles/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/sofral/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/vanal/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/celvia-serent/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-airvault/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/michel-robichon/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-unite-dinde/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-sainte-hermine/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/lionor/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/huttepain-soreal-aliments/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/celtys/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-servais/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/socadis/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-pont-morin/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/cailles-rocvent/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-chavagnes-en-paillers/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/agis-herbignac/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/guillot-cobreda-cuisery/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-sable/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/agis-tarare-site-cantubas/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/nourivrai-piace/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/plateforme-wissous/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/claude-couthouis/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/agis-avignon/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-macon-plateforme/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/boscher-volailles/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-mirebeau/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-auvergne/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/anateo/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-aquitaine-bazas/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-cavol/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/kiplama/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/bellavol/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/gpa-lhours/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/mairet/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/loeuf/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/procanar/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/drosed-surowiec/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/jeusselin/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-laval/ https://www.ldc.fr/nous-connaitre/#nos-implantations + + + + + + + # BEGIN WordPress # Les directives (lignes) entre 'BEGIN WordPress' et 'END WordPress' sont From f21a54ca64e725f2c840c734fa996c1986df905d Mon Sep 17 00:00:00 2001 From: Equipe Web Date: Mon, 6 Sep 2021 13:35:52 +0200 Subject: [PATCH 03/13] more elaborated .gitignore --- .gitignore | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) mode change 100644 => 100755 .gitignore diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index 9b22fbed..fcd072a1 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,47 @@ composer.lock content/uploads *.log /vendor/ + + +# Configuration. +.htaccess +wp-config.php + +# Sitemap files. +sitemap.xml +sitemap.xml.gz + +# Files in the root. +*.pdf +*.jpg +*.jpeg +*.png +*.txt +*.csv + +# WP dirs. +wp-admin/* +wp-includes/* +wp-snapshots/* + +# Ignore everything in the "wp-content" directory, except custom code. +/content/languages/* +/content/uploads/* +/content/plugins/* +/content/themes/* +!content/themes/ldc + +# Ignore node dependency directories. +**/node_modules/ + +# Ignore log files and databases. +*.log +*.sql +*.sqlite + +# PhpStorm files. +/.idea/ + +# DS_Store files generated by Finder on MacOS. +**/.DS_Store + From b57a796eb48240d078351c9c566bb913dacf2b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 6 Sep 2021 13:54:22 +0200 Subject: [PATCH 04/13] add keep-context.json to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index fcd072a1..35bdaf35 100755 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ composer.lock content/uploads *.log /vendor/ +keep-context.json # Configuration. From ac74d085d3c1bf9fd93f828df2836f66757d51bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 6 Sep 2021 14:14:39 +0200 Subject: [PATCH 05/13] Add phpcs --- .editorconfig | 18 ++++++++++++++++++ composer.json | 13 +++++++++++-- phpcs.xml | 8 ++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .editorconfig create mode 100644 phpcs.xml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..0a72ec68 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +[*.json] +indent_size = 4 + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 diff --git a/composer.json b/composer.json index 1ea99177..32864856 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,17 @@ { + "minimum-stability": "stable", + "require-all": true, "require": { "vlucas/phpdotenv": "^4.1", - "ext-curl": "*", - "ext-json": "*", + "ext-curl": "*", + "ext-json": "*", "dompdf/dompdf": "^1.0" + }, + "require-dev": { + "automattic/vipwpcs": "^2.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", + "wp-coding-standards/wpcs": "^2.3", + "phpcompatibility/phpcompatibility-wp": "^2.1", + "slevomat/coding-standard": "^7.0" } } diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 00000000..c2e9bfb4 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,8 @@ + + + + + content/ + content/plugins* + + From 96f08d5b29f2bff25cbb7e1f089380dff7170458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 6 Sep 2021 14:15:04 +0200 Subject: [PATCH 06/13] phpcbf fix --- content/themes/ldc/frontpage.php | 2 +- content/themes/ldc/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/themes/ldc/frontpage.php b/content/themes/ldc/frontpage.php index 47daefa9..ac01c67b 100644 --- a/content/themes/ldc/frontpage.php +++ b/content/themes/ldc/frontpage.php @@ -42,4 +42,4 @@ Template Name: Homepage } ?> - + - \ No newline at end of file + Date: Mon, 6 Sep 2021 17:16:00 +0200 Subject: [PATCH 07/13] update git ignore --- .gitignore | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 35bdaf35..5b0e05ab 100755 --- a/.gitignore +++ b/.gitignore @@ -10,11 +10,11 @@ keep-context.json # Configuration. .htaccess wp-config.php - + # Sitemap files. sitemap.xml sitemap.xml.gz - + # Files in the root. *.pdf *.jpg @@ -22,30 +22,29 @@ sitemap.xml.gz *.png *.txt *.csv - + # WP dirs. wp-admin/* wp-includes/* wp-snapshots/* - + # Ignore everything in the "wp-content" directory, except custom code. /content/languages/* /content/uploads/* /content/plugins/* /content/themes/* !content/themes/ldc - + # Ignore node dependency directories. **/node_modules/ - + # Ignore log files and databases. *.log *.sql *.sqlite - + # PhpStorm files. /.idea/ - + # DS_Store files generated by Finder on MacOS. **/.DS_Store - From a5939cbbf472856f2393f0ec32dc1033247a6a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 6 Sep 2021 17:16:25 +0200 Subject: [PATCH 08/13] change rgpd email to equipe.web --- rgpd/autoload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rgpd/autoload.php b/rgpd/autoload.php index 4b148e2e..0b172984 100644 --- a/rgpd/autoload.php +++ b/rgpd/autoload.php @@ -44,7 +44,7 @@ function configure_smtp($phpmailer){ $phpmailer->AddBCC('sylvain.gouet@ldc.fr'); $phpmailer->AddBCC('sebastien.hattry@ldc.fr'); }else{ - $phpmailer->AddAddress('informatique.internet@ldc.fr'); + $phpmailer->AddAddress('equipe.web@ldc.fr'); } $phpmailer->SMTPAutoTLS = false; $phpmailer->SMTPOptions = array( From c953c33154905ec09ba82bc58367bf6ced6cfffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 6 Sep 2021 17:16:38 +0200 Subject: [PATCH 09/13] htaccess hardening --- .htaccess | 52 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git a/.htaccess b/.htaccess index 865a7b2f..99084a1d 100755 --- a/.htaccess +++ b/.htaccess @@ -38,20 +38,30 @@ RewriteEngine on # Protect wp-config.php - deny from all + deny from all -# Protect .htaccess et .htpasswds - - order allow,deny - deny from all - +# @author JEREMY +# Protect hidden files + + Order allow,deny + Deny from all + -# Protect debug.log - - order allow,deny - deny from all - +# @author JEREMY +# Deny Everything in content folder except extensions +# css,jpeg,jpg,ico,png,gif,svg,js,eot,ttf,woff,woff2,mp4,mp3,ogg,ogv,mov,docx,doc,pdf,xml,html +RewriteRule ^content\/(.(?!.*\.css$|.*\.jpe?g$|.*\.ico$|.*\.png$|.*\.gif$|.*\.svg$|.*\.js$|.*\.eot$|.*\.ttf$|.*\.woff$|.*\.woff2$|.*\.mp4$|.*\.mp3$|.*\.ogg$|.*\.ogv$|.*\.mov$|.*\.docx$|.*\.doc$|.*\.pdf$|.*\.xml$|.*\.html$))*$ - [F] + +# @author JEREMY +# Deny everything in crons folder +RewriteRule ^crons\/.*$ - [F] + +# @author JEREMY +# Deny Everything in rgpd folder except needed +# css,jpeg,jpg,ico,png,gif,svg,js,eot,ttf,woff,woff2,mp4,mp3,ogg,ogv,mov,docx,doc,pdf,xml,html +# salaries/ consommateurs/ +RewriteRule ^rgpd\/(.(?!.*\.css$|.*\.jpe?g$|.*\.ico$|.*\.png$|.*\.gif$|.*\.svg$|.*\.js$|.*\.eot$|.*\.ttf$|.*\.woff$|.*\.woff2$|.*\.mp4$|.*\.mp3$|.*\.ogg$|.*\.ogv$|.*\.mov$|.*\.docx$|.*\.doc$|.*\.pdf$|.*\.xml$|.*\.html$|.*index\.php$|.*onsommateurs\/$|.*alaries\/$))*$ - [F] # Protect sql files @@ -73,9 +83,6 @@ RewriteEngine on Deny from all -# protection des fichiers sys -RedirectMatch 404 /\. - #Bloquer l'indexation des fichiers PDF Header set X-Robots-Tag "noindex, nofollow" @@ -893,11 +900,18 @@ RedirectPermanent /type/jeusselin/ https://www.ldc.fr/nous-connaitre/#nos-implan RedirectPermanent /type/s-n-v-laval/ https://www.ldc.fr/nous-connaitre/#nos-implantations - - - - - +# @author Jérémy +# https://wordpress.org/support/article/hardening-wordpress/ +# Block the include-only files. + +RewriteEngine On +RewriteBase / +RewriteRule ^wp-admin/includes/ - [F,L] +RewriteRule !^wp-includes/ - [S=3] +RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] +RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] +RewriteRule ^wp-includes/theme-compat/ - [F,L] + # BEGIN WordPress # Les directives (lignes) entre 'BEGIN WordPress' et 'END WordPress' sont From a707f945d197f40363d1916b4fabd993ad77129b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 6 Sep 2021 17:31:21 +0200 Subject: [PATCH 10/13] Ticket 349 --- content/plugins/ldc-messages/ldc-messages.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/plugins/ldc-messages/ldc-messages.php b/content/plugins/ldc-messages/ldc-messages.php index d329a02d..76da00c3 100644 --- a/content/plugins/ldc-messages/ldc-messages.php +++ b/content/plugins/ldc-messages/ldc-messages.php @@ -249,10 +249,11 @@ function ContactAjx() { $email = getPostContacts($postID); $title = "Vous avez un message à traiter sur le site LDC"; $content = genMailString($title, nl2br(sprintf( - "

%s : %s %s
%s
%s

", + "

%s : %s %s \n E-mail : %s \n %s \n %s

", $ref, $firstname, $lastname, + $email, $mInfo['MessageLabel'] ?? '', $content ))); From c1002b33088216a740f0765766a5b4630e01f60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 6 Sep 2021 17:31:34 +0200 Subject: [PATCH 11/13] add settings to fix phpcs --- .vscode/settings.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..6607806a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "phpcs.executablePath": "vendor/bin/phpcs" +} \ No newline at end of file From f2a663fcc70d7501dd6bb890d8e6bf756cd09f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Tue, 7 Sep 2021 09:13:21 +0200 Subject: [PATCH 12/13] remove useless file --- content/themes/ldc/header.php.bak.2020_04_08 | 143 ------------------- 1 file changed, 143 deletions(-) delete mode 100644 content/themes/ldc/header.php.bak.2020_04_08 diff --git a/content/themes/ldc/header.php.bak.2020_04_08 b/content/themes/ldc/header.php.bak.2020_04_08 deleted file mode 100644 index 50c79d17..00000000 --- a/content/themes/ldc/header.php.bak.2020_04_08 +++ /dev/null @@ -1,143 +0,0 @@ -chirk_top'; - $chirkashi['bottom'] = 'chirkashi_bottom'; - $chirkashi['left'] = ''; - $chirkashi['right'] = 'chirkashi_right'; -?> - - -> - - - - - - - - - <?php wp_title(); ?> - - -> - - -
- '', - 'theme_location' => 'top', - 'menu_class' => 'top-menu__list', - 'depth' => 0, - )); - ?> - -
- -
-
- - - -
-
- -
- '', - 'theme_location' => 'header_left', - 'menu_class' => 'header__nav nav', - 'depth' => 0, - )); - ?> -
-
-
- - '', - 'theme_location' => 'header_right', - 'menu_class' => 'header__nav nav', - 'depth' => 0, - )); - ?> -
- -
-
- -
-
- - - - -
-
- -
- -
-
- -
- -
-
-
- -
- -
- -
-
- 'mobile', - 'depth' => -1, - 'walker' => new CustomWalker() - )); -*/ - ?> - - - - '', - 'theme_location' => 'header_right', - 'menu_class' => 'header__mobile-nav-list', - 'depth' => 0, - ));*/ - ?> - - '', - 'theme_location' => 'top', - 'menu_class' => 'header__mobile-nav-list header__mobile-nav-list_add', - 'depth' => 0, - ));*/ - ?> -
-
- From 1daf0fd5de3d90587121f973f1bebceac24a76d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Tue, 7 Sep 2021 09:13:32 +0200 Subject: [PATCH 13/13] add secure htaccess --- .htaccess | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 99084a1d..8f372807 100755 --- a/.htaccess +++ b/.htaccess @@ -36,8 +36,8 @@ ServerSignature Off RewriteEngine on -# Protect wp-config.php - +# Protect wp-config.php | autoload.php + deny from all @@ -53,6 +53,11 @@ RewriteEngine on # css,jpeg,jpg,ico,png,gif,svg,js,eot,ttf,woff,woff2,mp4,mp3,ogg,ogv,mov,docx,doc,pdf,xml,html RewriteRule ^content\/(.(?!.*\.css$|.*\.jpe?g$|.*\.ico$|.*\.png$|.*\.gif$|.*\.svg$|.*\.js$|.*\.eot$|.*\.ttf$|.*\.woff$|.*\.woff2$|.*\.mp4$|.*\.mp3$|.*\.ogg$|.*\.ogv$|.*\.mov$|.*\.docx$|.*\.doc$|.*\.pdf$|.*\.xml$|.*\.html$))*$ - [F] +# Protect conf files (non script or resource files) + + deny from all + + # @author JEREMY # Deny everything in crons folder RewriteRule ^crons\/.*$ - [F]