Spark Posted April 5, 2009 Share Posted April 5, 2009 Dear all!Need help regarding changing to Friendly URLs. Would like to know i need to change what to enable viewing for my viewed product block?Appreciate if anyone can help? Thanks!Regards,SparkWeb: www.thattoyshop.com Link to comment Share on other sites More sharing options...
Stu583 Posted April 5, 2009 Share Posted April 5, 2009 I had this problem aswell. You need to double check that the products "default category" is not home! Change it to any other catagory and it seems to work. Link to comment Share on other sites More sharing options...
Spark Posted April 6, 2009 Author Share Posted April 6, 2009 hi there,Thanks for your reply on this. However you mean that items that place in home will not be display in viewed products?Anyone here have any ideas to solve this problem? As I need to put some feature items at home. Thanks guys! Link to comment Share on other sites More sharing options...
Stu583 Posted April 6, 2009 Share Posted April 6, 2009 No you can place them in "home" but the default catagory should NOT be home. You can put a product in as many catagories as you want but they all need a default. Link to comment Share on other sites More sharing options...
Spark Posted April 6, 2009 Author Share Posted April 6, 2009 Wow, Didn't know it's work this way. Thanks for your help on this!Will have to redo my products. Really thanks for your help. Learn new stuffs! Link to comment Share on other sites More sharing options...
Naturally Geek Posted April 25, 2009 Share Posted April 25, 2009 I have a question. I have the same problem, I change the Default Category, but every time I try to go to any page I get the error (Managed Error) "Lo sentimos, pero la página que busca en estos momentos no se encuentra disponible. " Means:"We are sorry, but the page you are looking for it is not available at this time".Any page, of the front page, product page or category page even manufactures page. It does not matter I does not display.Any Idea of what could be the problem?I asked and the provider supports re write and the file .htaccess is there already. Link to comment Share on other sites More sharing options...
Spark Posted April 26, 2009 Author Share Posted April 26, 2009 What do you mean any pages? You mean those recently view items at your block or any items? This is strange..perhaps you should start everything over again? As in the .htaccess file. Do note that all item should not be put in 'Home' but any other place Link to comment Share on other sites More sharing options...
Naturally Geek Posted April 26, 2009 Share Posted April 26, 2009 Yes it is pretty rare. I install the Presta Shop, pretty easy.Add spanish language. And then try to enable the friendly names.Following the instructions and It was giving me an error like page not found.Then, I read this post about the default category I made the changes and start working because it displays the prestaforum page, the error page.I looks like a problem on the httaccess y I will upload it again. Link to comment Share on other sites More sharing options...
[email protected] Posted April 27, 2009 Share Posted April 27, 2009 After performing the procedure to activate Friendly URL almost everything is fine except for the links from "viewed Products" If you click on an image generates a broken link missing the first part http://dominio. Try http://www.gffph.com Clicking on new products or featured products and all isok.But visited no. It has already happened to someone. Thank you Link to comment Share on other sites More sharing options...
Snol Posted April 28, 2009 Share Posted April 28, 2009 I have same problem error 404 everywhere when I turn on friendly URL. does anyone know exactly what text should go in the .htaccess file.thanksJohn Link to comment Share on other sites More sharing options...
[email protected] Posted April 28, 2009 Share Posted April 28, 2009 No you can place them in "home" but the default catagory should NOT be home. You can put a product in as many catagories as you want but they all need a default. Thank you I had the same problem.Risolved.Would be interesting to understand the reason Link to comment Share on other sites More sharing options...
[email protected] Posted April 28, 2009 Share Posted April 28, 2009 risolved see post" After changing site to Friendly URL [Changing .htaccess] My view product cannot be view " Link to comment Share on other sites More sharing options...
Patric Posted April 28, 2009 Share Posted April 28, 2009 [email protected] : I merged your topic with this one. ;-) Link to comment Share on other sites More sharing options...
Naturally Geek Posted April 28, 2009 Share Posted April 28, 2009 Yes let's make a resume:Fist change htaccess.txt to .htaccessSecond enable on the Preferences the "Friendly URL".And there is a restriction, you can not put the Default Category of any product on "Startseite", you have to choose other one.Any other recomendation?Casuse I still have the error:It is the 404 error:"We're sorry, but the Web address you entered is no longer available"Ahh I have to add in my case I have problems with any link, not only products, categories, cms links.It is like the my .htaccess does not have the correct content for the interpretation.But I updated with the one on the package and still not work.This is the content of my file:# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([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]# Catch 404 errorsErrorDocument 404 /404.phpCan some one publish one that is working.Or any one knows where this error can be logged or how?I'm new to php I'm .net proggramer comming back from the dark side. Link to comment Share on other sites More sharing options...
Snol Posted April 28, 2009 Share Posted April 28, 2009 I downloaded the new version of PS and it has an automatic .htacess generator. I used this and then swithced friendly url back on on "local host "and it works. Sadley though not on my live site on 1and1. I will wait till new version is final release and just use that. Link to comment Share on other sites More sharing options...
Naturally Geek Posted April 28, 2009 Share Posted April 28, 2009 Yes but I cant just start again I have invested too much on products and categories to start over.I need to see how to debug it. Link to comment Share on other sites More sharing options...
Snol Posted April 28, 2009 Share Posted April 28, 2009 Yes but when the new version is stable cant you just upgrade to it and it will retain all your previous info. Dont know whow long till it is ready though. Link to comment Share on other sites More sharing options...
Naturally Geek Posted April 28, 2009 Share Posted April 28, 2009 Ohh yes, That option is good to.You know a way to see the record of that error?Thanks Link to comment Share on other sites More sharing options...
Snol Posted April 29, 2009 Share Posted April 29, 2009 AddType x-mapp-php5 .php #URL rewriting module activation#RewriteEngine on #URL rewriting rulesRewriteRule ^([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]#Catch 404 errorsErrorDocument 404 /404.phpAbove is the content of my .htaccessfile on my LOCALHOST. this is the automatic version which is generated by Prestashop itself in the 1.2 alpha version.are you using host 1and1 I hear that they may have problems.John Link to comment Share on other sites More sharing options...
Naturally Geek Posted April 29, 2009 Share Posted April 29, 2009 Ty Snol. I kind of follow your advice.I install the version 1.2 in a similar configuration. Generate the .htaccess File because the one you post is the same I have and I notice the generator, for my configuration add the "/" before the File Name on the rewrite rules, you can see it here:# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([0-9]+)\-([0-9]+)(\-[a-zA-Z0-9-]*)/([a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]RewriteRule ^([0-9]+)(\-[a-zA-Z0-9-]*)/([a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [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]# Catch 404 errorsErrorDocument 404 /404.phpAnd that was all, problem fixed.And I think I know why even when I'm not able to explain it. I have on my hosting the ability to add multiple "domains" to a single account. I just add a folder inside and point the domain to it.Any way when I make the installation the system tellsme:There is 1 errorPath is not the same between your browser and you server :- Server:admintool/login.php- Browser:fraganciasm/admintool/login.php But this do not affect me on anything excepting the Friendly paths.I think is that because I have no problem on my local installation.Any way If someone have the same problem try to put the "/" before the file names.It may work.Regards Link to comment Share on other sites More sharing options...
Snol Posted April 29, 2009 Share Posted April 29, 2009 well done Beginner, you gave me clue to mine and it worked too.My site is in www.mysite/prestashopso rewrite rules must contain the folder in the prefix as sample 1 line belowRewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop/category.php?id_category=$1 [QSA,L,E] you will se where I had to add the subfolder name /prestashop/ to the line.all working fine now, we both got there in the end, whooo hoo!thxJOhn Link to comment Share on other sites More sharing options...
Naturally Geek Posted May 3, 2009 Share Posted May 3, 2009 Great, I just hope this help other fellows too. Link to comment Share on other sites More sharing options...
kamaltin Posted May 25, 2009 Share Posted May 25, 2009 Hi,my shop installed to the sub-domain like http://store.mydomain.kzURL rewriting is supported, Script options was turned on, htaccess.txt renamed to .htaccess. But friendly URLs don't work.Adding slash in the .htacces was not successful. If some one have another advise?BR,Kamal. Link to comment Share on other sites More sharing options...
Naturally Geek Posted May 25, 2009 Share Posted May 25, 2009 Your host is stored on a folder inside your root?If that is the case you should add the name of the folder on the path of the RewriteRule Link to comment Share on other sites More sharing options...
txr Posted June 16, 2009 Share Posted June 16, 2009 Wow, Didn't know it's work this way. Thanks for your help on this!Will have to redo my products. Really thanks for your help. Learn new stuffs! you dont have to. just try to run this query over your DB I already used for fix this problem: update prestashop_product as p set id_category_default = (select id_category from prestashop_category_product as cp where cp.id_product = p.id_product LIMIT 1) where 'prestashop' is your current DB prefix of course Link to comment Share on other sites More sharing options...
Recommended Posts