geaseeds33 Posted November 13, 2025 Share Posted November 13, 2025 Hola a todos, Estoy intentando quitar los enlaces del selector “Ordenar por” en las categorías de productos. PrestaShop, por defecto, genera URLs como estas: https://mywebsite.com/es/15-categoria-productos?order=product.position.asc https://mywebsite.com/es/15-categoria-productos?order=product.name.asc https://mywebsite.com/es/15-categoria-productos?order=product.name.desc https://mywebsite.com/es/15-categoria-productos?order=product.price.asc El problema es que esto crea una cantidad enorme de URLs que no aportan nada a nivel SEO, y me gustaría evitar que se generen enlaces indexables para cada orden. Lo ideal sería que el selector de ordenación funcionara solo con JavaScript, sin añadir parámetros ?order= a la URL. ¿Alguien ha implementado una solución para eliminar estos enlaces y manejar la ordenación de forma interna con JS? Cualquier orientación o ejemplo sería de gran ayuda. ¡Gracias de antemano! Link to comment Share on other sites More sharing options...
juanrojas Posted November 13, 2025 Share Posted November 13, 2025 Block them in the robots.txt file, for example. User-agent: * Disallow: /*?order=product.position.asc Disallow: /*&order=product.position.asc Link to comment Share on other sites More sharing options...
geaseeds33 Posted November 14, 2025 Author Share Posted November 14, 2025 14 hours ago, juanrojas said: Block them in the robots.txt file, for example. User-agent: * Disallow: /*?order=product.position.asc Disallow: /*&order=product.position.asc Hello, thank you for your response. Yes, by default PrestaShop blocks them with robots.txt using the Disallow directive: /*&order= But many SEO tools like Ahrefs still flag it as a problem since you shouldn't have so many links blocked by robots.txt in your code. That's why I'd like an alternative solution that doesn't use links. Link to comment Share on other sites More sharing options...
juanrojas Posted November 14, 2025 Share Posted November 14, 2025 Disallow: /*?order= If you use this option, does it also show it as a problem? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now