philee Posted October 13, 2011 Share Posted October 13, 2011 Hi, I've been trying to figure out this issue I am having for the past hour. When you click on any of the products, it will redirect you to another page. I know the product page is active because if you add to cart it will add to cart. It's only doing it for BMW Accessories section. Here's the site: http://www.supremewe..._query=3+series I regenerated the HTaccess, and I reindexed the product catalog in the search tab already. I don't understand why it's redirecting the link. Here's the HTACCESS: # URL rewriting module activation RewriteEngine on # URL rewriting rules RewriteRule ^api/?(.*)$ /store/webservice/dispatcher.php?url=$1 [QSA,L] RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /store/img/p/$1-$2$3.jpg [L] RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /store/img/p/$1-$2.jpg [L] RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /store/img/p/$1/$1$2.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /store/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$ /store/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$ /store/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$ /store/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$ /store/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$ /store/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$ /store/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$ /store/img/c/$1$2.jpg [L] RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /store/img/c/$1.jpg [L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /store/product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /store/category.php?id_category=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /store/product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /store/supplier.php?id_supplier=$1 [QSA,L] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /store/manufacturer.php?id_manufacturer=$1 [QSA,L] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /store/cms.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /store/cms.php?id_cms_category=$1 [QSA,L] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /store/img/c/$1$2.jpg [L] RewriteRule ^page-not-found$ /store/404.php [QSA,L] RewriteRule ^address$ /store/address.php [QSA,L] RewriteRule ^addresses$ /store/addresses.php [QSA,L] RewriteRule ^authentication$ /store/authentication.php [QSA,L] RewriteRule ^best-sales$ /store/best-sales.php [QSA,L] RewriteRule ^cart$ /store/cart.php [QSA,L] RewriteRule ^contact-us$ /store/contact-form.php [QSA,L] RewriteRule ^discount$ /store/discount.php [QSA,L] RewriteRule ^guest-tracking$ /store/guest-tracking.php [QSA,L] RewriteRule ^order-history$ /store/history.php [QSA,L] RewriteRule ^identity$ /store/identity.php [QSA,L] RewriteRule ^manufacturers$ /store/manufacturer.php [QSA,L] RewriteRule ^my-account$ /store/my-account.php [QSA,L] RewriteRule ^new-products$ /store/new-products.php [QSA,L] RewriteRule ^order$ /store/order.php [QSA,L] RewriteRule ^order-follow$ /store/order-follow.php [QSA,L] RewriteRule ^quick-order$ /store/order-opc.php [QSA,L] RewriteRule ^order-slip$ /store/order-slip.php [QSA,L] RewriteRule ^password-recovery$ /store/password.php [QSA,L] RewriteRule ^prices-drop$ /store/prices-drop.php [QSA,L] RewriteRule ^search$ /store/search.php [QSA,L] RewriteRule ^sitemap$ /store/sitemap.php [QSA,L] RewriteRule ^stores$ /store/stores.php [QSA,L] RewriteRule ^supplier$ /store/supplier.php [QSA,L] </IfModule> If someone has the solution or suggestion to this problem would be greatly appreciated. Philip UPDATE FROM HOST RESPONSE: "It doesn't appear to be a .htaccess problem, but a problem with Prestashop. Here are the rewrite rules in question: RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /store/product.php?id_product=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /store/product.php?id_product=$1 [QSA,L] The product URL for the BMW headlights is: http://www.supremewe...headlights.html The second rewrite rule rewrites this to: http://www.supremewe...id_product=5073 If you go to that second URL directly (the proper URL), Prestshop redirects it to the first URL, and redirects the browser there. The second redirect them redirects it to the Audi-Accessories page. This appears to be an issue with Prestashop's products module, as the redirect is coming from Prestashop's code, not from the apache .htaccess file. As far as I can tell, the redirects are functioning correctly, Prestashop itself is redirecting incorrectly. You will need to contact the developers of Prestashop for further assistance on this, as it doesn't appear to be a server misconfiguration." Link to comment Share on other sites More sharing options...
philee Posted October 13, 2011 Author Share Posted October 13, 2011 I am stumped, I can't figure it out.. help would be appreciated. Link to comment Share on other sites More sharing options...
philee Posted October 13, 2011 Author Share Posted October 13, 2011 I updated the first post with the response from the technical support team from my host. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 13, 2011 Share Posted October 13, 2011 Hi Philip, We will be releasing version 1.4.5 (with the automatic upgrade feature!) either tonight or tomorrow, so my suggestion would be to wait and upgrade as soon as its released to see if that solves your issue. -Mike Link to comment Share on other sites More sharing options...
philee Posted October 13, 2011 Author Share Posted October 13, 2011 Hi Mike, I can't do that 1.4.5 upgrade immediately to the production site until I know my site set-up will be bug-free with the new version. -- Does anyone have a solution to my issue? Link to comment Share on other sites More sharing options...
philee Posted October 13, 2011 Author Share Posted October 13, 2011 Update: I extracted the product CSV file, and re-imported the BMW products and still no luck. Link to comment Share on other sites More sharing options...
Asenar Posted October 15, 2011 Share Posted October 15, 2011 Hi, what is the revision number at the top of the files /classes/Tools.php ? Link to comment Share on other sites More sharing options...
philee Posted October 15, 2011 Author Share Posted October 15, 2011 Michael, * @version Release: $Revision: 7691 $ Link to comment Share on other sites More sharing options...
philee Posted October 15, 2011 Author Share Posted October 15, 2011 Hi Philip, We will be releasing version 1.4.5 (with the automatic upgrade feature!) either tonight or tomorrow, so my suggestion would be to wait and upgrade as soon as its released to see if that solves your issue. -Mike Upgraded to 1.4.5.1, and this didn't solve my issue. Still doing a 301 redirect or only one category. Link to comment Share on other sites More sharing options...
Asenar Posted October 16, 2011 Share Posted October 16, 2011 Philee, maybe your problem is about the customization of your htaccess you made in the textarea (in tools > generator). Link to comment Share on other sites More sharing options...
philee Posted October 17, 2011 Author Share Posted October 17, 2011 @Michael Yeah I thought it was the htaccess file as well. So I deleted the previous one and regenerated a new one. However, this didn't change the issue I am having. Link to comment Share on other sites More sharing options...
Recommended Posts