ootiz Posted July 14, 2013 Share Posted July 14, 2013 Hi, I have been searching from last 2 days in the prestashop forum, but couldnt find fix to my problem. I am using Prestashop 1.5.4.1 I did not do any upgrade. I transferred the host by precisely following the steps mentioned in the catalog. Everything is working fine only all my images of all products are missing. I manually checked via FTP and all images are there. even I can see in via browser. for example http://pletukobabyshoes.com/girls-baby-shoes/baby-girl-shoes/ and image in it is http://pletukobabyshoes.com/35-large_default/baby-girl-shoes.jpg this link doesnt show up http://pletukobabyshoes.com/img/p/3/5/35-home_default.jpg samthing works if I see it directly via browser My new host is Godaddy. I am mentioning it because this may be a problem, it will help you all to assist me. Also .htaccess is not being created automatically. I tried on/off/on in friendly url. Can I do something in product.tpl file or .htaccess file to solve this problem. Link to comment Share on other sites More sharing options...
vekia Posted July 14, 2013 Share Posted July 14, 2013 this is prestashop? i don't think so im asking because in prestashop cart url looks a bit different: http://www.asecureca...letukobabyshoes you store engine is probably modified, am i right? Link to comment Share on other sites More sharing options...
ootiz Posted July 14, 2013 Author Share Posted July 14, 2013 (edited) The whole website is prestashop. Only the link http://www.asecureca...letukobabyshoes is a 3rd party payment cart. I am a theme developer developing for one of my client. His requirement was to develop with that payment option. Thanks for your fast response. I recommended him to use prestashop for his online shop business. I am becoming fan of prestashop. Any help is highly appreciated. Here is the same page demo link website where I did all the development http://pdemo.ootiz.co.in/girls-baby-shoes/baby-girl-shoes/ And after transferring this link, everything is good, except the product image http://pletukobabyshoes.com/girls-baby-shoes/baby-girl-shoes/ Edited July 14, 2013 by ootiz (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 14, 2013 Share Posted July 14, 2013 but i tried to add products to cart - i can't. Other pages also doesn't work :\ Link to comment Share on other sites More sharing options...
ootiz Posted July 14, 2013 Author Share Posted July 14, 2013 (edited) Cart is temporarily down, (Its a 3rd Party payment page) Also Cart page is another website NOTICE the url after clicking CART button. And the links on the cart page menu is old and will be modified after completion of this website. old website was in aspx I am changing it to php (prestashop) goto http://pletukobabyshoes.com/ and check all the link if you want. Thanks for your patience. Edited July 14, 2013 by ootiz (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted July 14, 2013 Share Posted July 14, 2013 Image file exists http://pletukobabyshoes.com/img/p/3/5/35-large_default.jpg so check in .htaccess if you have # Images RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^localhost$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] Note this part of htaccess is from localhost and your should be similar, but don't use this code. You said that you have tried turning Friendly Urls off and on but try after you turn it on to refresh that page and check htaccess file then. Link to comment Share on other sites More sharing options...
vekia Posted July 14, 2013 Share Posted July 14, 2013 that's right razaro, i think also that is strictly related to the .htaccess file i've got also additional question to @ootiz what kind of OS you've got on your webhosting? Link to comment Share on other sites More sharing options...
ootiz Posted July 14, 2013 Author Share Posted July 14, 2013 (edited) Vekia ON new website http://pletukobabyshoes.com. Its a Godaddy Server Windows OS Pn demo server http://pdemo.ootiz.co.in/ its LINUX When I completely delete the .htaccess file, then prestashop does not automatically regenrates the .htaccess file. Do you think here may be the problem. I copied my .htaccess file from old demo server http://pdemo.ootiz.co.in/ to new godaddy server via ftp http://pletukobabyshoes.com/ and replaced pdemo.ootiz.co.in with pletukobabyshoes.com Below is that part # Images RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] . Edited July 14, 2013 by ootiz (see edit history) Link to comment Share on other sites More sharing options...
ootiz Posted July 14, 2013 Author Share Posted July 14, 2013 I have tried all the options and read many threads from prestashop forum, but still got no luck. Please help, I really need you smart guys help. Link to comment Share on other sites More sharing options...
razaro Posted July 14, 2013 Share Posted July 14, 2013 Sorry but not sure what could be an issue. But you could post your whole .htaccese here and also information you bet in Prestashop back office under Advanced Parameters > Configuration Information. Also try to sent PM to Ken_GoDaddy maybe he could be more of help. Link to comment Share on other sites More sharing options...
ootiz Posted July 14, 2013 Author Share Posted July 14, 2013 I guess There is some godaddy hosting issue, thats why automatic .htaccess file is not created. I also think that prestashop is not reading the .htaccess file As you said I have sent PM to Ken Here is my .htaccess file content which I copied from demo server http://pdemo.ootiz.co.in/ to new server http://www.pletukobabyshoes.com/ and replaced the domain name link in this file # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums #Fix Rewrite Options -Multiviews <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^pletukobabyshoes.com$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> <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> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript </IfModule> </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Link to comment Share on other sites More sharing options...
ootiz Posted July 14, 2013 Author Share Posted July 14, 2013 (edited) Under Advanced Parameters > Configuration Information I can see .... Server information Server information: Windows NT build 6002 i586 Server software version: Microsoft-IIS/7.0 PHP version: 5.2.17 Memory limit: 32M Max execution time: 30 Database information MySQL version: 5.0.96-log MySQL engine: InnoDB Tables prefix: ps_ Store information PrestaShop version: 1.5.4.1 Shop URL: http://pletukobabyshoes.com/ Current theme in use: pletukotheme Mail configuration Mail method: You are using the PHP mail function. Your information Your web browser: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36 AlexaToolbar/alxg-3.1 Check you configuration Required parameters: OK Optional parameters: Please fix the following error(s) pdo_mysql And at the end list of 2229 files, which are Updated files. Please help. Any hint to solve this problem is highly appreciated. Edited July 14, 2013 by ootiz (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 14, 2013 Share Posted July 14, 2013 I would suggest having godaddy switch you to an apache server...this way there will not be any incompatibility with the .htaccess that there is with IIS Link to comment Share on other sites More sharing options...
ootiz Posted July 14, 2013 Author Share Posted July 14, 2013 (edited) Thanks for the suggestion EI Patron I just saw a post in prestashop forum http://www.prestasho...-url-rewriting/ He solved this by creating web.config file instead of .htaccess using the code provided there http://www.damoin.es...rewrite-en-iis/ But its for old version 1.5.0.17 If this method really works then Prestashop Team should keep an option in ADMIN to generate web.config file along with .htaccess file Can you please modify it for me for 1.5.4.1 latest Version. I dont know which line to change. Edited July 14, 2013 by ootiz (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 15, 2013 Share Posted July 15, 2013 I knew about creating web.config, but I will stand by my original suggestion, move to apache. What you might get working today may not work tomorrow. If you think you have a good feature improvement for ps, it's best to open a forge 'improvement' request, this can be done here: http://forge.prestashop.com/secure/Dashboard.jspa Link to comment Share on other sites More sharing options...
ootiz Posted July 15, 2013 Author Share Posted July 15, 2013 I have asked via mail my client to get Apache server instead of IIS server with your Goddady Account. Waiting for reply. I am just a theme developer. But I want an urgent solution for this client, can you give me any hint on how to create win.config for PS 1.4.1.5 Link to comment Share on other sites More sharing options...
vekia Posted July 15, 2013 Share Posted July 15, 2013 i think that everything depends on IIS settings, not ps .htaccess configuration file Im not specialist in this case because I used IIS several times, but i noticed that many merchants here have got huge issues with this ... Link to comment Share on other sites More sharing options...
ootiz Posted July 15, 2013 Author Share Posted July 15, 2013 Can somebody please share web.config file contents for PS 1.5.4.1 ??? Link to comment Share on other sites More sharing options...
jigar.m1987 Posted May 11, 2015 Share Posted May 11, 2015 I faced this problem 3 times while moving sites from my localhost to a live server. If anyone is facing the issue in a similar scenario, you might want to change this line in the .htaccess RewriteRule . - [E=REWRITEBASE:/2014/someproject] Replace the 2014/someproject/ with the base URL on the live server (the same thing also needs to be done in the shop_url table in the database with physical_uri. Hope this helps someone. Link to comment Share on other sites More sharing options...
rctdeveloper Posted June 6, 2015 Share Posted June 6, 2015 there is a issue i have some image in the directory with 0 Bytes size i just want to replace those image with other url and other images are show properly what we i do help me sorry for my english Link to comment Share on other sites More sharing options...
rctdeveloper Posted June 6, 2015 Share Posted June 6, 2015 guys any body help me Link to comment Share on other sites More sharing options...
gopeppy Posted November 30, 2016 Share Posted November 30, 2016 (edited) I know this is an old thread. Might be helpful for someone search for solution.I had this similar problem when I upgraded my hosting to a new server with the same hosting provider. I had Friendly URL enabled earlier. So, I uploaded the .htaccess file from my backup and overwrote the newly generated one. This resolved the issue. I will give the contents of the .htaccess file below. Replace the DOMAIN. # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on #Domain: www.DOMAIN.com RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api$ api/ [L] RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$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])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/x-font-woff .woff <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$"> Header add Access-Control-Allow-Origin "*" </FilesMatch> </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Edited November 30, 2016 by gopeppy (see edit history) Link to comment Share on other sites More sharing options...
soltanian Posted June 24, 2017 Share Posted June 24, 2017 Hey everyone, Although this thread is somehow old (like the other threads in this forum!), I still have this problem!. I get a backup from my old server and transfer them to the new server. I also remove the .htaccess file and regenerate it as mentioned before. My problem is this: Some product images are showing and some of them are not !!! Note that the files of all product pictures are on my new server too. Is there any solution??? Link to comment Share on other sites More sharing options...
Recommended Posts