lazyegg Posted April 2, 2009 Share Posted April 2, 2009 after i rename the htaccess.txt to .htaccess, it work, but there still a problem with the Friendly URL setting.if you go to my site http://www.piggybabyshoes.com/ the friendly url only doesn't work at "VIEWED PRODUCTS" , it won't go any where, it will come out a error page, others are fine. anyone can help me here? thank you Link to comment Share on other sites More sharing options...
ilian2001 Posted April 2, 2009 Share Posted April 2, 2009 Hello,it seems the links of your "deja vus" articles does not start with your site name, only the article name... You may have forgotten to declare your site URL somewhereFred Link to comment Share on other sites More sharing options...
Spark Posted April 5, 2009 Share Posted April 5, 2009 Hi guys,I am also facing this problem. Anyone has any idea to solve this? my view products also didn't have my website. Appreciate someone can help? Thanks Link to comment Share on other sites More sharing options...
Marghoob Suleman Posted May 18, 2009 Share Posted May 18, 2009 Even I was facing same problem. And I've a solution 2... open classes/Link.php and find this: public function getProductLink($id_product, $alias = NULL, $category = NULL, $ean13 = NULL) { if (!isset($this->allow)) $this->allow = 0; if (is_object($id_product)) return ($this->allow == 1)?(_PS_USE_SSL_.__PS_BASE_URI__.$id_product->category.'/'.intval($id_product->id).'-'.$id_product->link_rewrite.($id_product->ean13 ? '-'.$id_product->ean13 : '').'.html') : (_PS_USE_SSL_.__PS_BASE_URI__.'product.php?id_product='.intval($id_product->id)); elseif ($alias) return ($this->allow == 1)?(_PS_USE_SSL_.__PS_BASE_URI__.($category ? ($category.'/') : '').intval($id_product).'-'.$alias.($ean13 ? '-'.$ean13 : '').'.html') : (_PS_USE_SSL_.__PS_BASE_URI__.'product.php?id_product='.intval($id_product)); else return _PS_USE_SSL_.__PS_BASE_URI__.'product.php?id_product='.intval($id_product); } and replace with this: public function getProductLink($id_product, $alias = NULL, $category = NULL, $ean13 = NULL) { if (!isset($this->allow)) $this->allow = 0; //there was an error in line no. 46. when clean url is enabled. fixed on May 19 2009 if (is_object($id_product)) return ($this->allow == 1)?(_PS_USE_SSL_.__PS_BASE_URI__.($category ? ($id_product->category.'/') : '').intval($id_product->id).'-'.$id_product->link_rewrite.($id_product->ean13 ? '-'.$id_product->ean13 : '').'.html') : (_PS_USE_SSL_.__PS_BASE_URI__.'product.php?id_product='.intval($id_product->id)); elseif ($alias) return ($this->allow == 1)?(_PS_USE_SSL_.__PS_BASE_URI__.($category ? ($category.'/') : '').intval($id_product).'-'.$alias.($ean13 ? '-'.$ean13 : '').'.html') : (_PS_USE_SSL_.__PS_BASE_URI__.'product.php?id_product='.intval($id_product)); else return _PS_USE_SSL_.__PS_BASE_URI__.'product.php?id_product='.intval($id_product); } Enjoy!Regards,Marghoob Suleman Link to comment Share on other sites More sharing options...
davidtnb Posted June 6, 2009 Share Posted June 6, 2009 @SulemanYou are awesome, fixed my problem! Link to comment Share on other sites More sharing options...
Suyambu Posted September 14, 2009 Share Posted September 14, 2009 Thakns, It's Working Link to comment Share on other sites More sharing options...
paradate Posted December 30, 2009 Share Posted December 30, 2009 Is there a way to make friendly urls not depended on the .htaccess file?My web hosting company wouldnt let me access the .htaccess file, because of security reasons they say. Link to comment Share on other sites More sharing options...
Shaun Posted April 23, 2010 Share Posted April 23, 2010 I tried Marhgoob's code above but it did not work for me. My express-order page is showing the "Web address is not available" once I've entered all the billing and shipping address info and selected "next". Can anyone help with this?Update: My issue was related to using an e-mail that was already in the DB when attempting to checkout as a guest. Solved! Link to comment Share on other sites More sharing options...
Marghoob Suleman Posted April 26, 2010 Share Posted April 26, 2010 hi Shaun,I got ur PM too. But i dont think your issue is related to friendly url. Can you try your checkout process without friendly url. If problem persist we can check whatz going on. Link to comment Share on other sites More sharing options...
armadillo Posted February 14, 2011 Share Posted February 14, 2011 Hi friends,I made this correction on Link.php bu it did not for for product page again, i am using Version 1.3.6.0.Categories links are working but product links are not working Link to comment Share on other sites More sharing options...
cor9003 Posted February 15, 2011 Share Posted February 15, 2011 Hello all, I have the same problem and the correction in Link.php don´t work for Version 1.3.1.0.Any other idea ?. Categories are working fine but not the products link. I have 2 languages, in one is working fine and in other not Link to comment Share on other sites More sharing options...
crash121 Posted May 21, 2011 Share Posted May 21, 2011 Hi Thanks for that worked perfect on presta shop ves 1.3 final. I must point out when you do this fix regenerate the acess file. As it did not work untill I did this for some strange reason. Also if you are copying the above make sure you close the comment about the fix with // at the end. Link to comment Share on other sites More sharing options...
crash121 Posted May 25, 2011 Share Posted May 25, 2011 (_PS_USE_SSL_.__PS_BASE_URI__.'product.php?id_product='.intval($id_product->id));If your products keep saying products dont exist try this (_PS_BASE_URI_.__PS_BASE_URI__.'product.php?id_product='.intval($id_product->id));Happy moding:D Link to comment Share on other sites More sharing options...
crash121 Posted May 27, 2011 Share Posted May 27, 2011 That does not work the fix i put before the above comment works# Link to comment Share on other sites More sharing options...
sniperscope Posted June 3, 2011 Share Posted June 3, 2011 I solved that problem deleting seo rules.Simply login your store admin page and follow Preferences > Seo&URLs;in this page you may see a lot of rules. delete all rules and save settings. Works like charm. Link to comment Share on other sites More sharing options...
PrestaSupport Posted June 17, 2011 Share Posted June 17, 2011 I solved that problem deleting seo rules.Simply login your store admin page and follow Preferences > Seo&URLs;in this page you may see a lot of rules. delete all rules and save settings. Works like charm. Thanks Link to comment Share on other sites More sharing options...
rainthebat Posted August 9, 2011 Share Posted August 9, 2011 ...Simply login your store admin page and follow Preferences > Seo&URLs;in this page you may see a lot of rules. delete all rules and save settings. Works like charm. Thanks so much, that was surly the correct fix (charm) for me! I'm so happy now Link to comment Share on other sites More sharing options...
Heinyken Posted September 29, 2011 Share Posted September 29, 2011 I'm having a similar problem - Friendly permalinks are not allowing me to access my cart - but turning off the friendly links fixes the problem; my issue is that I want SEO-Friendly links! Any thoughts? Link to comment Share on other sites More sharing options...
alooa Posted October 8, 2011 Share Posted October 8, 2011 Marghoob Suleman Help me pls, I have problem with Images Enlarge1.3 when using url friendly. How can I resolve that problem pls, thanks You can see www.alooa.net Link to comment Share on other sites More sharing options...
Recommended Posts