Foloseste Xenu sau Screaming Frog pentru a detecta toate paginile generate gresit. Exporta-le si filtreaza-le intr-un excel. De acolo le poti pune fara probleme in .htaccess pentru redirect, in formatul potrivit.