PietroPaoloVirdis Posted February 8, 2016 Share Posted February 8, 2016 I have done plenty of customizing in a theme and my site was up and working a while back so everything was verified to work perfectly. Long story short, I had to install Prestashop again and upload the same edited files once again but it doesn't work now. At lucabrasico.com I have an index.html as landing page which is placed in folder public_html If I keep the index.php in the public_html folder I get an ERR_TOO_MANY_REDIRECTS If I delete the index.php I do get to my landing page/first page but nothing I do in the backoffice shows in the front. My .htaccess which is in public_html/themes looks like this "RewriteEngine on #Domain: lucabrasico.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" What have I messed up?I'd be happy to provide more info obviously Link to comment Share on other sites More sharing options...
yaniv14 Posted February 8, 2016 Share Posted February 8, 2016 The htaccess file that set the tone is the one in the root folder (public_html), not inside themes folder. Try to rename the .htaccess to .htaccess.bak (or delete it) and then try regenerate it from BO 1 Link to comment Share on other sites More sharing options...
PietroPaoloVirdis Posted February 8, 2016 Author Share Posted February 8, 2016 My bad. The .htaccess above is in public_html and nowhere else. Is the file ok as is? Link to comment Share on other sites More sharing options...
tdr170 Posted February 8, 2016 Share Posted February 8, 2016 (edited) Edit Edited February 9, 2016 by tdr170 (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted February 8, 2016 Share Posted February 8, 2016 Your htaccess looks fine but it serves index.php as 1st priority (it if exists) and if not it goes to index.html Try settings different priority. Add to htaccess DirectoryIndex index.html index.php 1 Link to comment Share on other sites More sharing options...
PietroPaoloVirdis Posted February 8, 2016 Author Share Posted February 8, 2016 Where do I add this? Right now at the very top it says Options All -Indexes DirectoryIndex index.php index.html index.htm Do I changed to? Options All -Indexes DirectoryIndex index.html index.php Link to comment Share on other sites More sharing options...
yaniv14 Posted February 8, 2016 Share Posted February 8, 2016 Yes 1 Link to comment Share on other sites More sharing options...
PietroPaoloVirdis Posted February 14, 2016 Author Share Posted February 14, 2016 OK, that works. I still don't get any shop up. Not a hint of one in the front office. I kept a back up of the files and ones I re-installed I uploaded through FTP. Have I placed them incorrectly, or is my index.html incomplete? What info can I put up here/screenshot for someone to get an idea? Link to comment Share on other sites More sharing options...
yaniv14 Posted February 14, 2016 Share Posted February 14, 2016 How do you try to access your store front end? Turn on debug and look for errors. Link to comment Share on other sites More sharing options...
PietroPaoloVirdis Posted February 14, 2016 Author Share Posted February 14, 2016 I am wondering whether I should not do this from scratch. Ignore previous custom work/files and just get it going as a standard installation so have temporarily removed that, including index.html. I have removed .htaccess and regenerated to a fresh copy. It seems not even the standard version will work. I have installed and use a free theme (Leo T-shirt) which I know is clean. In Configuration info it says Some PrestaShop files are missing from your server.(/css/index.php) In list of missing files: Missing files (4)README.md css/.htaccess css/index.php css/retro-compat.css.php I've turned on debugging in config.inc.php but will need a few minutes to read up on where to go from there. Link to comment Share on other sites More sharing options...
PietroPaoloVirdis Posted February 14, 2016 Author Share Posted February 14, 2016 How do you try to access your store front end? Turn on debug and look for errors. Either by entering the webpage, www.lucabrasico.com Or through "My Shop" through BO. Both give same error, "ERR_TOO_MANY_REDIRECTS" Keep in mind I have temporarily removed index.html and use an .htaccess looking like this: # ~~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: lucabrasico.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 Link to comment Share on other sites More sharing options...
PietroPaoloVirdis Posted February 14, 2016 Author Share Posted February 14, 2016 This is what it looks like in my FTP if it helps Link to comment Share on other sites More sharing options...
yaniv14 Posted February 14, 2016 Share Posted February 14, 2016 You need to turn it from defines.inc.php not config. look for: /* Debug only */ if (!defined('_PS_MODE_DEV_')) { define('_PS_MODE_DEV_', false); } and change to: /* Debug only */ if (!defined('_PS_MODE_DEV_')) { define('_PS_MODE_DEV_', true); } Also disable all module override, cache & friendly urls from back office. And check if you get any error when entering the home page. Link to comment Share on other sites More sharing options...
PietroPaoloVirdis Posted February 14, 2016 Author Share Posted February 14, 2016 You need to turn it from defines.inc.php not config. look for: and change to: Also disable all module override, cache & friendly urls from back office. And check if you get any error when entering the home page. Done. Same error "ERR_TOO_MANY_REDIRECTS" Link to comment Share on other sites More sharing options...
yaniv14 Posted February 14, 2016 Share Posted February 14, 2016 It's hard to tell whats the problem without having access to your server. Try check you DB ps_shop_url table and see that it matched your real domain and root folder. Link to comment Share on other sites More sharing options...
PietroPaoloVirdis Posted February 14, 2016 Author Share Posted February 14, 2016 What's the best way to simply remove everything Prestashop related and then reinstall it? If that would be a final solution. Link to comment Share on other sites More sharing options...
yaniv14 Posted February 14, 2016 Share Posted February 14, 2016 Maybe you can try do 1 click upgrade from the module because I see that you have version 1.6.1.3 and you are capable of upgrading to 1.6.1.4. Maybe the upgrade will fix your issues. This upgrade will keep you DB and all your products. If you already setup your store with categories, products, cms pages and more I don't recommend starting from fresh unless you are capable of making backups and restore them to the new installation. Link to comment Share on other sites More sharing options...
PietroPaoloVirdis Posted February 15, 2016 Author Share Posted February 15, 2016 After several tries (it wasn't as easy as to just install module and click run, had to transfer manually through ftp), I have upgraded but the same problem remains. Link to comment Share on other sites More sharing options...
PietroPaoloVirdis Posted February 15, 2016 Author Share Posted February 15, 2016 I am installing from beginning instead. Thanks for your time. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now