shopping.uk Posted August 4, 2009 Share Posted August 4, 2009 Hi all, can anyone help with my previous post HereI'd ask you to view this post to save me having to post the same thing multiple times.I am not sure if this error is a bug or a server error, could even be .htaccess as i think that file is missing when i downloaded prestashop v1.2 but im not totally sure as i am still a newbie when it comes to coding.Many Thanks for your helpRussell Link to comment Share on other sites More sharing options...
Snol Posted August 4, 2009 Share Posted August 4, 2009 not sure but you would need to generate a .htaccess fileback office, preferences, friendly url and then clcik generate .htaccess file this wil do it automatically for you.make sure friendly url is turned ON before generating th file, if no success reply back and I can paste code here Link to comment Share on other sites More sharing options...
shopping.uk Posted August 4, 2009 Author Share Posted August 4, 2009 Thanks Snol, I'll try doing that now. Link to comment Share on other sites More sharing options...
shopping.uk Posted August 4, 2009 Author Share Posted August 4, 2009 Oops think i broke it now.....I have created a .htaccess (blank) file and as suggested in the back office, a blank robot.txt file and set permissions 777 on both.I now get a 404 error on back office and front office. so cannot even view the back office now.(i created the files created in the root folder of the prestashop install - ie i installed presta in a file called 'newshop' so i created the files in there) Link to comment Share on other sites More sharing options...
Snol Posted August 4, 2009 Share Posted August 4, 2009 remove the .htaccess and the robot, you dont need the robot file at least yet anyways.Then at least you are back where you were.then just put the .htaccess back in to your root (where the admin and classes config etc folders are)who are you hosted with, some hosts like 1and 1 require this line adding to the .htaccess file to ensure php 5 useageAddType x-mapp-php5 .phpmy .htaccess is below# URL rewriting module activationRewriteEngine onAddType x-mapp-php5 .php# URL rewriting rulesRewriteRule ^([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]+)(\-[_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 errorsErrorDocument 404 /404.phpplease note the numbers beginning the lines should be "hash" as the forums chnges them in translation for some reason Link to comment Share on other sites More sharing options...
shopping.uk Posted August 4, 2009 Author Share Posted August 4, 2009 Ok i'll try again.I am on 110mb which uses PHP version 5.1.6 Link to comment Share on other sites More sharing options...
shopping.uk Posted August 4, 2009 Author Share Posted August 4, 2009 Thanks for your help Snol, That seems to have solved the problem.Thanks also for your speedy replies. Link to comment Share on other sites More sharing options...
Snol Posted August 4, 2009 Share Posted August 4, 2009 No Problem I just registered on your site and it works fine,please dont send me the IPOD. LOL Link to comment Share on other sites More sharing options...
shopping.uk Posted August 4, 2009 Author Share Posted August 4, 2009 No Problem I just registered on your site and it works fine,please dont send me the IPOD. LOL Thanks for testing it for me.You cant have the ipod i already claimed it lol Link to comment Share on other sites More sharing options...
bambi Posted August 13, 2009 Share Posted August 13, 2009 Hi, trying to upgrade from 1.1 to 1.2 - after downloading 1.2 there is no HTACCESS file in the root (there is an empty one in download folder). In the WIKI it says I should merge the 1.1 HTACCESS file with the "new" 1.2 file. Any help would be vry much appriciated. ThanX :cheese: Link to comment Share on other sites More sharing options...
Snol Posted August 13, 2009 Share Posted August 13, 2009 If you modified your previous .htaccess in any way then you must mereg the 2, i.e the info in the on eyou modified must be in the one you generate in 1.2this is in cases of where some servers must have the "AddType x-mapp-php5 .php" added to it. (you will know if you modified it)the best thing you can do is, copy or rename the old .htaccess. then go to back office admin preferences and turn on friendly URL. Then click the generate .htaccess button. (BE CARFULL this will erase your old .htaccess unless you copied or renamed it) and it will place the new V1.2 .htaccess in your root.if you didnt modify anything in your old .htaccess you should be fineJohn Link to comment Share on other sites More sharing options...
bambi Posted August 13, 2009 Share Posted August 13, 2009 Hi Snol, thank you so much for your quick reply. I will try out your suggestion. :cheese: Link to comment Share on other sites More sharing options...
Recommended Posts