Nettoyer un fichier .htacces qui est trop gros

Nouveau WRInaute
Bonjour,

J'ai récemment modernisé un site qui était en 4 langues sous la forme mon-site.com/fr, mon-site.com/de, etc. vers la forme mon-site.com, mon-site.de, etc. (ce n'est pas encore terminé). Le site est sous Prestashop, je gère les langues avec le mode multiboutiques.

Le problème est que je dois faire des redirections 301 entre l'ancien et le nouveau site et qu'avec 4 langues cela alourdit considérablement le .htaccess. Exemple avec l'allemand, j'ai les redir ci-dessous. Voyez-vous des solutions pour alléger le tout ? (Avec les autres langues je multiplie ces données par 4 + ce que Prestashop a déjà écrit !)

Merci d'avance =)

RedirectPermanent /de https://www.oeliatec.de
RedirectPermanent /eolia-hiver-de https://www.oeliatec.de
RedirectPermanent /eolia-lav-de https://www.oeliatec.de
RedirectPermanent /eolia-th-de https://www.oeliatec.de
RedirectPermanent /informationen-zu-cookies https://www.oeliatec.de
RedirectPermanent /portfolio_category/portofolio-de https://www.oeliatec.de
RedirectPermanent /slide-view/profi-ausrustung https://www.oeliatec.de
(à noter que slide-view sert aussi pour des urls anglaises, françaises et espagnoles donc difficile de 301 le répertoire)
RedirectPermanent /slide-view/unkrautbekampfung-im-hei%CE%B2wasserverfahren https://www.oeliatec.de
RedirectPermanent /slide-view/vehiculo-electrico-mollen https://www.oeliatec.de
RedirectPermanent /slide-view/weeding-with-hot-water https://www.oeliatec.de
RedirectPermanent /produkte https://www.oeliatec.de/12-Unkrautbekampfungsmaschine
RedirectPermanent /contact-de https://www.oeliatec.de/content/11-kontakt-oeliatec
RedirectPermanent /optionen https://www.oeliatec.de/content/10-Dokumentation-Anfrage-Unkrautbekamp ... -Herbizide
RedirectPermanent /uns-kontaktieren https://www.oeliatec.de/content/11-kontakt-oeliatec
RedirectPermanent /firma https://www.oeliatec.de/content/4-okologische-Unkrautbekampfungsmaschi ... Hersteller
RedirectPermanent /unkrautvernichtung-funktionsweise https://www.oeliatec.de/content/6-Funktionsweise-Unkrautbekampfung-ohn ... -Pestizide
RedirectPermanent /demo-dagen https://www.oeliatec.de/news
RedirectPermanent /demo-dagen-show-en https://www.oeliatec.de/news
RedirectPermanent /category/aktuelles https://www.oeliatec.de/news/aktuelles
RedirectPermanent /nachste-ausstellungen-mit-oeliatec https://www.oeliatec.de/news/ausstellungen/naechste-ausstellungen-mit- ... iatec-2017
RedirectPermanent /unkrautbekampfungsmaschine-brehat https://www.oeliatec.de/unkrautbekampfungsmaschine/10-tropfchen-heissw ... ine-brehat
RedirectPermanent /belle-ile-de https://www.oeliatec.de/unkrautbekampfungsmaschine/11-anhanger-unkraut ... belle-ille
RedirectPermanent /mollen-de https://www.oeliatec.de/unkrautbekampfungsmaschine/12-unkrautbekampfung-fahrzeug
RedirectPermanent /houat-skid-de https://www.oeliatec.de/unkrautbekampfungsmaschine/7-unkrautbekampfung ... houat-skid
RedirectPermanent /hoedic-skid-de https://www.oeliatec.de/unkrautbekampfungsmaschine/8-unkrautbekampfung ... oedic-skid
RedirectPermanent /hoedic-cm-de https://www.oeliatec.de/unkrautbekampfungsmaschine/9-kompakt-heisswass ... -hoedic-cm
 
Nouveau WRInaute
Bonjour,

Dans ce fichier j'ai pas mal de redir qui pourraient sûrement être simplifiées, mais j'ai essayé pas mal de choses cela ne fonctionne pas.

Exemple :
RedirectPermanent /wp-content/uploads/2014/03/Eolia-Ouessant.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2014/04/plaquette-belleile.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2014/04/plaquette-Houat-skid-2013.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2014/09/Documentation-Belle-ile-2014.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2014/09/Documentation-Houat-Skid-2014.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2014/09/Mollen.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2014/09/plaquette-belleile.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2014/09/plaquette-Brehat.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2015/09/M%C3%B6gliche-Option3.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2015/09/Options-possibles.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2015/09/Tableau-descriptif-technique.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2015/09/Technische-Tabelle-f%C3%BCr-alle-Reihen.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2016/09/plaquette-Brehat-ALL-2016.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2016/09/plaquette-Brehat-FR-2016.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2016/09/plaquette-Hoedic-ALL-2016.pdf    https://www.oeliatec.fr
RedirectPermanent /wp-content/uploads/2016/09/plaquette-Houat-FR-2016.pdf    https://www.oeliatec.fr

J'ai tenté des redir dossier vers page mais aucun résultat !

Exemples de choses essayées :
RedirectPermanent ^/wp-content/    https://www.oeliatec.fr
RedirectPermanent /wp-content/    https://www.oeliatec.fr

Merci d'avance à la personne qui pourra m'aider =)
 
Nouveau WRInaute
Vous pouvez supprimer toutes ces lignes normalement google s'occupe de tout , il désindexe les fichiers , comme les urls qui ne sont pas ou plus sur le serveur
 
Discussions similaires
Haut