]> _ Git - usines-reunies.git/commitdiff
Done #4305 @0.75
authorStephen Cameron <stephen@cubedesigners.com>
Mon, 1 Mar 2021 10:39:21 +0000 (11:39 +0100)
committerStephen Cameron <stephen@cubedesigners.com>
Mon, 1 Mar 2021 10:39:21 +0000 (11:39 +0100)
.gitignore
web/.htaccess [new file with mode: 0644]

index 85b23781d050c122a7a0f10f728360f710f114aa..9f1ddf18dc492d353b9582bb1eca2d19cdef7c12 100644 (file)
@@ -22,7 +22,6 @@ web/app/languages
 
 # WordPress
 web/wp
-web/.htaccess
 
 # Logs
 *.log
diff --git a/web/.htaccess b/web/.htaccess
new file mode 100644 (file)
index 0000000..7ff8d90
--- /dev/null
@@ -0,0 +1,98 @@
+# Old website redirections
+<IfModule mod_rewrite.c>
+       RewriteEngine on
+
+       RedirectMatch 301 (?i)^/fr/bar-restaurants.htm /categories-realisation/cafes-restaurants/
+       RedirectMatch 301 (?i)^/fr/belambra.htm /realisations/
+       RedirectMatch 301 (?i)^/fr/igesa.htm /realisations/
+       RedirectMatch 301 (?i)^/fr/ehpad-foyers-logements.htm /categories-realisation/sante-medico-social/
+       RedirectMatch 301 (?i)^/fr/villages-vacances.htm /categories-realisation/hotels-villages-vacances/
+       RedirectMatch 301 (?i)^/fr/hotels-residences-hotelieres.htm /categories-realisation/hotels-villages-vacances/
+       RedirectMatch 301 (?i)^/fr/collectivites-medico-social.htm /categories-realisation/sante-medico-social/
+       RedirectMatch 301 (?i)^/fr/campings.htm /categories-realisation/hotels-villages-vacances/
+       RedirectMatch 301 (?i)^/fr/villas-privees.htm /realisations/
+       RedirectMatch 301 (?i)^/fr/administrations.htm /realisations/
+       RedirectMatch 301 (?i)^/fr/salle-restaurant.htm /categories-realisation/cafes-restaurants/
+       RedirectMatch 301 (?i)^/fr/terrasse.htm /realisations/
+       RedirectMatch 301 (?i)^/fr/chambre.htm /realisations/
+       RedirectMatch 301 (?i)^/fr/salon.htm /realisations/
+       RedirectMatch 301 (?i)^/fr/salle-seminaire.htm /realisations/
+       RedirectMatch 301 (?i)^/fr/hall-accueil.htm /realisations/
+       RedirectMatch 301 (?i)^/fr/services.htm /notre-offre/
+       RedirectMatch 301 (?i)^/fr/partenaires.htm /lequipe/
+       RedirectMatch 301 (?i)^/fr/catalogues.htm /catalogues/
+       RedirectMatch 301 (?i)^/fr/salons.htm /actualites/
+       RedirectMatch 301 (?i)^/fr/agencement.htm /notre-offre/
+       RedirectMatch 301 (?i)^/fr/realisations.htm /realisations/
+       RedirectMatch 301 (?i)^/fr/contact.htm /contact/
+       RedirectMatch 301 (?i)^/fr/mentions.htm /mentions-legales/
+
+       # Querystring redirects require the use of mod_rewrite instead of mod_alias
+       RewriteCond %{QUERY_STRING} ^_ref=15$
+    RewriteRule ^fr/page\.htm$ /categories-realisation/hotels-villages-vacances/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=499$
+    RewriteRule ^fr/page\.htm$ /realisations/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=24$
+    RewriteRule ^fr/page\.htm$ /categories-realisation/hotels-villages-vacances/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=25$
+    RewriteRule ^fr/page\.htm$ /categories-realisation/cafes-restaurants/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=26$
+    RewriteRule ^fr/page\.htm$ /categories-realisation/sante-medico-social/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=27$
+    RewriteRule ^fr/page\.htm$ /categories-realisation/sante-medico-social/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=28$
+    RewriteRule ^fr/page\.htm$ /categories-realisation/hotels-villages-vacances/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=30$
+    RewriteRule ^fr/page\.htm$ /realisations/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=29$
+    RewriteRule ^fr/page\.htm$ /realisations/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=165$
+    RewriteRule ^fr/page\.htm$ /categories-realisation/cafes-restaurants/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=162$
+    RewriteRule ^fr/page\.htm$ /realisations/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=164$
+    RewriteRule ^fr/page\.htm$ /realisations/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=163$
+    RewriteRule ^fr/page\.htm$ /realisations/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=166$
+    RewriteRule ^fr/page\.htm$ /realisations/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=173$
+    RewriteRule ^fr/page\.htm$ /realisations/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=310$
+    RewriteRule ^fr/page\.htm$ /actualites/? [R=301,L]
+
+       RewriteCond %{QUERY_STRING} ^_ref=339$
+    RewriteRule ^fr/page\.htm$ /notre-offre/? [R=301,L]
+
+</IfModule>
+
+# BEGIN WordPress
+# Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées
+# dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
+# Toute modification des directives situées entre ces marqueurs sera surchargée.
+<IfModule mod_rewrite.c>
+RewriteEngine On
+RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+RewriteBase /
+RewriteRule ^index\.php$ - [L]
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule . /index.php [L]
+</IfModule>
+
+# END WordPress