zlatennn Posted July 30, 2012 Share Posted July 30, 2012 (edited) Hola todos, Necesito ayuda con lo siguiente. He cambiado el nombre de una url de mi tienda y he hecho redireccionamiento 301 en .htaccess y funcciona, pero la nueva url me aparece con el ¨?id=¨ al final. Me estoy rompendo la cabeza ya dos semanas y puede ser algo de htaccess pero no me aclaro. Os dejo los enlaces: URL antigua: www.ecolimpshop.es/especialidades/61-biopool-5-actions-formato-1l.html se redirecciona mediante redirect 301 a: URL nueva: www.ecolimpshop.es/especialidades/61-biopool-5-actions-tratamiento-de-piscina-sin-cloro.html pero en el navegador aparece lo siguiente: www.ecolimpshop.es/especialidades/61-biopool-5-actions-tratamiento-de-piscina-sin-cloro.html?id_product=61 Ayudaaa..... Gracias! Edited July 30, 2012 by Mike Kranzler Topic titles cannot be in all caps. (see edit history) Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 30, 2012 Share Posted July 30, 2012 Per the rules of the PrestaShop forums, all caps is not permitted in posts or topic titles. 1 Link to comment Share on other sites More sharing options...
zlatennn Posted July 30, 2012 Author Share Posted July 30, 2012 (edited) Dejo el contenido del fichero .htaccess por si alguien me puede echar un cable.. AddType x-mapp-php5 .php .php4 AddHandler x-mapp-php5 .php .php4 # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums # URL rewriting module activation RewriteEngine on RewriteCond %{HTTP_HOST} ^ecolimpshop\.es [NC] RewriteRule ^(.*)$ http://www.ecolimpshop.es/$1 [L,R=301] Redirect 301 /especialidades/61-biopool-5-actions-formato-1l.html http://www.ecolimpshop.es/especialidades/61-biopool-5-actions-tratamiento-de-piscina-sin-cloro.html Redirect 301 /61-biopool-5-actions-formato-1l.html http://www.ecolimpshop.es/especialidades/61-biopool-5-actions-tratamiento-de-piscina-sin-cloro.html # URL rewriting rules RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E] RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [L,E] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E] RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang=$1$5 [L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang=$1$4 [L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang=$1 [QSA,L,E] RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E] RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E] RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E] RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E] # Catch 404 errors ErrorDocument 404 /404.php Edited August 1, 2012 by zlatennn (see edit history) Link to comment Share on other sites More sharing options...
juninho2310 Posted August 20, 2012 Share Posted August 20, 2012 Conseguistes solucionarlo? tengo el mismo problema Link to comment Share on other sites More sharing options...
zlatennn Posted August 20, 2012 Author Share Posted August 20, 2012 No. Sigo igual. Link to comment Share on other sites More sharing options...
Recommended Posts