equalicy Posted September 10, 2012 Share Posted September 10, 2012 Hola, Creo que es aquí donde tengo que abrir el post. Mi página http://www.onaenae.com ya estaba muy avanzada, quiero decir que ya funciona compra, transporte, etc. Sólo me faltaba empezar a optimizarla y posicionarla. Ha sido activar las url amigables y empiezo a tener mogollón de problemas. Los fundamentales son la lentitud de la página y que ahora redirecciona mal algunos links como el botón "confirmar" y "check out". Hasta tal punto que si pulso en ellos sin estar logueado me sale la página en blanco. Lo que ya he hecho para intentar solucionarlo: - Desactivado forzar compilación y habilitado las opciones de CCC, menos la de la comprensión máxima de código html. - Activado: "Sistema de archivos" - También he probado a activar/desactivar optimización pero nada.. - El plan que tengo contratado de mi servidor Redcorina no soporta Memcached Copio el archivo htaccess generado: # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> # Disable Multiviews Options -Multiviews # URL rewriting module activation RewriteEngine on # URL rewriting rules RewriteRule ^api/?(.*)$ /webservice/dispatcher.php?url=$1 [QSA,L] RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2$3.jpg [L] RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2.jpg [L] RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$1$2.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$1$2$3.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$1$2$3$4.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L] RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /img/c/$1.jpg [L] RewriteRule ^([a-z]{2})/[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$2&isolang=$1 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$2&isolang=$1 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$2&isolang=$1&noredirect=1 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$2&isolang=$1 [QSA,L] RewriteRule ^([a-z]{2})/content/([0-9]+)\-[a-zA-Z0-9-]* /cms.php?isolang=$1&id_cms=$2 [QSA,L] RewriteRule ^([a-z]{2})/content/category/([0-9]+)\-[a-zA-Z0-9-]* /cms.php?isolang=$1&id_cms_category=$2 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)__[a-zA-Z0-9-]* /supplier.php?isolang=$1&id_supplier=$2 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)_[a-zA-Z0-9-]* /manufacturer.php?isolang=$1&id_manufacturer=$2 [QSA,L] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$1&noredirect=1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$1 [QSA,L] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /supplier.php?id_supplier=$1 [QSA,L] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /manufacturer.php?id_manufacturer=$1 [QSA,L] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L] RewriteRule ^en/page-not-found$ /404.php?isolang=en [QSA,L] RewriteRule ^en/address$ /address.php?isolang=en [QSA,L] RewriteRule ^en/addresses$ /addresses.php?isolang=en [QSA,L] RewriteRule ^en/authentication$ /authentication.php?isolang=en [QSA,L] RewriteRule ^en/best-sales$ /best-sales.php?isolang=en [QSA,L] RewriteRule ^en/cart$ /cart.php?isolang=en [QSA,L] RewriteRule ^en/contact-us$ /contact-form.php?isolang=en [QSA,L] RewriteRule ^en/discount$ /discount.php?isolang=en [QSA,L] RewriteRule ^en/guest-tracking$ /guest-tracking.php?isolang=en [QSA,L] RewriteRule ^en/order-history$ /history.php?isolang=en [QSA,L] RewriteRule ^en/identity$ /identity.php?isolang=en [QSA,L] RewriteRule ^en/manufacturers$ /manufacturer.php?isolang=en [QSA,L] RewriteRule ^en/my-account$ /my-account.php?isolang=en [QSA,L] RewriteRule ^en/new-products$ /new-products.php?isolang=en [QSA,L] RewriteRule ^en/order$ /order.php?isolang=en [QSA,L] RewriteRule ^en/order-follow$ /order-follow.php?isolang=en [QSA,L] RewriteRule ^en/quick-order$ /order-opc.php?isolang=en [QSA,L] RewriteRule ^en/order-slip$ /order-slip.php?isolang=en [QSA,L] RewriteRule ^en/password-recovery$ /password.php?isolang=en [QSA,L] RewriteRule ^en/prices-drop$ /prices-drop.php?isolang=en [QSA,L] RewriteRule ^en/search$ /search.php?isolang=en [QSA,L] RewriteRule ^en/sitemap$ /sitemap.php?isolang=en [QSA,L] RewriteRule ^en/stores$ /stores.php?isolang=en [QSA,L] RewriteRule ^en/supplier$ /supplier.php?isolang=en [QSA,L] RewriteRule ^en$ /en/ [QSA,L] RewriteRule ^en/([^?&]*)$ /$1?isolang=en [QSA,L] RewriteRule ^es/pagina-no-encuentra$ /404.php?isolang=es [QSA,L] RewriteRule ^es/direccion$ /address.php?isolang=es [QSA,L] RewriteRule ^es/direcciones$ /addresses.php?isolang=es [QSA,L] RewriteRule ^es/autenticacion$ /authentication.php?isolang=es [QSA,L] RewriteRule ^es/mas-vendidos$ /best-sales.php?isolang=es [QSA,L] RewriteRule ^es/carro-de-la-compra$ /cart.php?isolang=es [QSA,L] RewriteRule ^es/contactenos$ /contact-form.php?isolang=es [QSA,L] RewriteRule ^es/descuento$ /discount.php?isolang=es [QSA,L] RewriteRule ^es/estado-pedido$ /guest-tracking.php?isolang=es [QSA,L] RewriteRule ^es/historial-de-pedidos$ /history.php?isolang=es [QSA,L] RewriteRule ^es/identidad$ /identity.php?isolang=es [QSA,L] RewriteRule ^es/fabricantes$ /manufacturer.php?isolang=es [QSA,L] RewriteRule ^es/mi-cuenta$ /my-account.php?isolang=es [QSA,L] RewriteRule ^es/nuevos-productos$ /new-products.php?isolang=es [QSA,L] RewriteRule ^es/carrito$ /order.php?isolang=es [QSA,L] RewriteRule ^es/devolucion-de-productos$ /order-follow.php?isolang=es [QSA,L] RewriteRule ^es/pedido-rapido$ /order-opc.php?isolang=es [QSA,L] RewriteRule ^es/vales$ /order-slip.php?isolang=es [QSA,L] RewriteRule ^es/contrasena-olvidado$ /password.php?isolang=es [QSA,L] RewriteRule ^es/promocion$ /prices-drop.php?isolang=es [QSA,L] RewriteRule ^es/buscar$ /search.php?isolang=es [QSA,L] RewriteRule ^es/mapa-del-sitio$ /sitemap.php?isolang=es [QSA,L] RewriteRule ^es/tiendas$ /stores.php?isolang=es [QSA,L] RewriteRule ^es/proveedores$ /supplier.php?isolang=es [QSA,L] RewriteRule ^es$ /es/ [QSA,L] RewriteRule ^es/([^?&]*)$ /$1?isolang=es [QSA,L] </IfModule> # Catch 404 errors ErrorDocument 404 /404.php <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> ¿Me pueden ayudar, por favor? Link to comment Share on other sites More sharing options...
jordiob Posted September 10, 2012 Share Posted September 10, 2012 Hola. A mí me funcionan ambas urls (checkout y confirmar) lo que sí veo es esto en el footer: -->-->--> Habrás dejado algún código comentado abierto o comentado un código smarty con los comments de html <!-- --> Para comentar código smarty, utiliza {* *} Saludos! Link to comment Share on other sites More sharing options...
equalicy Posted September 10, 2012 Author Share Posted September 10, 2012 Gracias por contestar y el aporte Jordi! Si, tengo que arreglar lo del footer. Pero me preocupa más el htacces. ¿Está bien configurado?. Si añades un artículo al carrito y pulsas "Confirmar" sin registrarte, te lleva una página en blanco. Al menos me pasa a mi y un amigo que lo ha intentado... ¿Cómo puedo solucionarlo?. Link to comment Share on other sites More sharing options...
jordiob Posted September 10, 2012 Share Posted September 10, 2012 Ya he visto dónde está el problema. Este enlace del carrito: http://www.onaenae.com/es/carrito?step=1 te lleva aquí: http://www.onaenae.com/es/autenticacion?back=order.php%3Fstep%3D1 Este link no existe, porque order.php está renombrado para ser friendly y debería ser: http://www.onaenae.com/es/autenticacion?back=carrito%3Fstep%3D1 Haz una búsqueda en todo el site en local con Dreamweaver por ejemplo y busca la cadena ?back= y modifica los trozos de código necesarios. Saludos! Link to comment Share on other sites More sharing options...
equalicy Posted September 10, 2012 Author Share Posted September 10, 2012 Gracias! Voy a probar. Link to comment Share on other sites More sharing options...
Recommended Posts