janeklass Posted June 2, 2024 Share Posted June 2, 2024 HI I installed prestashop 8 in the extra folder of my domain as a test. The error message ERR_TOO_MANY_REDIRECTS appears when visiting the page. Administrator is working. The solution? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 2, 2024 Share Posted June 2, 2024 It works for me! Clear you cache browser. Link to comment Share on other sites More sharing options...
janeklass Posted June 2, 2024 Author Share Posted June 2, 2024 5 hours ago, Prestashop Addict said: It works for me! Clear you cache browser. it doesn't work for me Link to comment Share on other sites More sharing options...
a-d-g Posted June 5, 2024 Share Posted June 5, 2024 I've the same issue. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 6, 2024 Share Posted June 6, 2024 Strange redirect works for me Link to comment Share on other sites More sharing options...
janeklass Posted June 6, 2024 Author Share Posted June 6, 2024 23 minutes ago, Prestashop Addict said: Strange redirect works for me Yes, the main domain works, but I have another page in another folder http://flamicroz.com/Foto/ and it doesn't work Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 6, 2024 Share Posted June 6, 2024 Redirection rule issue in your .htaccess or apache / nginx vhost configuration Link to comment Share on other sites More sharing options...
janeklass Posted June 6, 2024 Author Share Posted June 6, 2024 14 minutes ago, Prestashop Addict said: Ümbersuunamisreegli probleem teie .htaccessi või apache / nginxi vhosti konfiguratsioonis How to fix? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 6, 2024 Share Posted June 6, 2024 Publish your rules here Link to comment Share on other sites More sharing options...
janeklass Posted June 6, 2024 Author Share Posted June 6, 2024 (edited) 4 minutes ago, Prestashop Addict said: Publish your rules here my .htaccess code : # ~~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 # https://www.prestashop.com - https://www.prestashop.com/forums <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on #Domain: flamicroz.com RewriteRule . - [E=REWRITEBASE:/Foto/] RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] RewriteRule ^upload/.+$ %{ENV:REWRITEBASE}index.php [QSA,L] # Images RewriteCond %{HTTP_HOST} ^flamicroz.com$ RewriteRule ^(([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$1$3 [L] RewriteCond %{HTTP_HOST} ^flamicroz.com$ RewriteRule ^(([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$1$4 [L] RewriteCond %{HTTP_HOST} ^flamicroz.com$ RewriteRule ^(([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$1$5 [L] RewriteCond %{HTTP_HOST} ^flamicroz.com$ RewriteRule ^(([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$1$6 [L] RewriteCond %{HTTP_HOST} ^flamicroz.com$ RewriteRule ^(([\d])([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$6/$1$7 [L] RewriteCond %{HTTP_HOST} ^flamicroz.com$ RewriteRule ^(([\d])([\d])([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$6/$7/$1$8 [L] RewriteCond %{HTTP_HOST} ^flamicroz.com$ RewriteRule ^(([\d])([\d])([\d])([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$6/$7/$8/$1$9 [L] RewriteCond %{HTTP_HOST} ^flamicroz.com$ RewriteRule ^c/([\d]+)(\-[\.*\w-]*)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/c/$1$2$3 [L] RewriteCond %{HTTP_HOST} ^flamicroz.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[\d]+)?/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/c/$1$2$3 [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ %{ENV:REWRITEBASE}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/font-woff .woff AddType font/woff2 .woff2 <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> </IfModule> <Files composer.lock> # Apache 2.2 <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> # Apache 2.4 <IfModule mod_authz_core.c> Require all denied </IfModule> </Files> #If rewrite mod isn't enabled ErrorDocument 404 /Foto/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 June 6, 2024 by janeklass (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 6, 2024 Share Posted June 6, 2024 Try to add this just after RewriteEngine on RewriteBase / Link to comment Share on other sites More sharing options...
janeklass Posted June 6, 2024 Author Share Posted June 6, 2024 9 minutes ago, Prestashop Addict said: Try to add this just after RewriteEngine on RewriteBase / Unfortunately, it doesn't work Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 6, 2024 Share Posted June 6, 2024 (edited) What do you want to do exactly with /Foto? What does this folder contain? Edited June 6, 2024 by Prestashop Addict (see edit history) Link to comment Share on other sites More sharing options...
janeklass Posted June 6, 2024 Author Share Posted June 6, 2024 37 minutes ago, Prestashop Addict said: What do you want to do exactly with /Foto? What does this folder contain? This folder contains the new prestashop. My main domain is presta 7, I installed presta 8 in the Foto folder. Just a test page to familiarize yourself with presta 8.. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 6, 2024 Share Posted June 6, 2024 Ok so if I undertood, you installed a second PS in a sub folder Foto/ of your 1rst PS. So you don't need to change your original .htaccess, new PS must have its own Foto/.htaccess Link to comment Share on other sites More sharing options...
janeklass Posted June 6, 2024 Author Share Posted June 6, 2024 15 minutes ago, Prestashop Addict said: Ok so if I undertood, you installed a second PS in a sub folder Foto/ of your 1rst PS. So you don't need to change your original .htaccess, new PS must have its own Foto/.htaccess Yes, the new one has its own .htaccess. I also put this code here before Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 6, 2024 Share Posted June 6, 2024 (edited) When you installed news PS in Foto/ did you specified base URI to /Foto? In no try the following : Goto 1rst PS admin / SEO and URL and save (will recreate a good .htaccess) Goto 2nd PS admin / SEO and URL specified base URI to /Foto and save* * If you cannot access to backoffice of 2nd PS change value of base URI directly in database Edited June 6, 2024 by Prestashop Addict (see edit history) Link to comment Share on other sites More sharing options...
janeklass Posted June 6, 2024 Author Share Posted June 6, 2024 51 minutes ago, Prestashop Addict said: When you installed news PS in Foto/ did you specified base URI to /Foto? In no try the following : Goto 1rst PS admin / SEO and URL and save (will recreate a good .htaccess) Goto 2nd PS admin / SEO and URL specified base URI to /Foto and save* * If you cannot access to backoffice of 2nd PS change value of base URI directly in database Is there anything to change here? 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