webbie1985 Posted November 7, 2013 Share Posted November 7, 2013 hi guys, My prestashop was transferred to a new host, all was good before the transfer, when it was completed the website was throwing redirect loops. when i spoke to the hosting company they said the htaccess was at fault. I didnt really believe it as it was fine before hand but when i checked it on the ftp yep it was completely empty. So now i can access back office to generate a new one and also cant view the front office. I dont have a back up and the one i do have is from 1.4.9, and im on 1.5.5 so if i use this i get a 500 error. so my question is how can i generate a new one, really need help, the directors are driving me mad. i dont have much htaccess experience so i havent really got a clue Thanks in advanced Paul Link to comment Share on other sites More sharing options...
El Patron Posted November 7, 2013 Share Posted November 7, 2013 .htaccess is typically 'hidden' and most ftp programs must be told to show hidden files. So make sure your ftp program is configured to show hidden files once you have done this, and you now 'see' the .htaccess file...simply delete it. then from your back office (assume friendly url's are on) turn off friendly url's, save, then turn back on friendly url's...save this will rebuild you .htaccess here is a little module I wrote that you may be interested in http://www.prestashop.com/forums/topic/213570-module-prestashop-15-customize-htaccess/ Link to comment Share on other sites More sharing options...
webbie1985 Posted November 7, 2013 Author Share Posted November 7, 2013 (edited) i deleted the htaccess still get redirect loop on FO but BO i dont get anything just blank screen before i was getting redirect loop so i still cant access BO any other ideas Thanks Just thought now i get a blank page i can now turn debug on this is the error i get: Fatal error: Call to undefined function mcrypt_encrypt() in /var/www/vhosts/swifttrading.co.uk/httpdocs/classes/Rijndael.php on line 50 Edited November 7, 2013 by webbie1985 (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted November 7, 2013 Share Posted November 7, 2013 let's see if we can get some more information on the blank screen in the bo http://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-500-error-or-blank-page/ after doing this do you see an error in the bo? Link to comment Share on other sites More sharing options...
webbie1985 Posted November 7, 2013 Author Share Posted November 7, 2013 On 11/7/2013 at 12:58 PM, webbie1985 said: Just thought now i get a blank page i can now turn debug on this is the error i get: Fatal error: Call to undefined function mcrypt_encrypt() in /var/www/vhosts/swifttrading.co.uk/httpdocs/classes/Rijndael.php on line 50 Link to comment Share on other sites More sharing options...
El Patron Posted November 7, 2013 Share Posted November 7, 2013 On 11/7/2013 at 1:03 PM, webbie1985 said: On 11/7/2013 at 12:58 PM, webbie1985 said: Just thought now i get a blank page i can now turn debug on this is the error i get: Fatal error: Call to undefined function mcrypt_encrypt() in /var/www/vhosts/swifttrading.co.uk/httpdocs/classes/Rijndael.php on line 50 Contact your hosting company (if you do not know how to load php modules) and ask them to enable mcrypt php extension. Link to comment Share on other sites More sharing options...
webbie1985 Posted November 7, 2013 Author Share Posted November 7, 2013 yea just installed it when i realised what it actually meant, can login now to BO but just setting permissions as i cant access any pages Link to comment Share on other sites More sharing options...
El Patron Posted November 7, 2013 Share Posted November 7, 2013 On 11/7/2013 at 1:51 PM, webbie1985 said: yea just installed it when i realised what it actually meant, can login now to BO but just setting permissions as i cant access any pages for me anyway...that is not enough information...what happens when you try to access pages? in the bo or fo? Link to comment Share on other sites More sharing options...
webbie1985 Posted November 7, 2013 Author Share Posted November 7, 2013 i get an error say about permissions on smarty cache, cant view at the minute as im changing a few permissions i will let you know, Thanks Link to comment Share on other sites More sharing options...
webbie1985 Posted November 7, 2013 Author Share Posted November 7, 2013 ok the BO now works perfect, generated the htaccess but still getting redirect loop on FO Link to comment Share on other sites More sharing options...
El Patron Posted November 7, 2013 Share Posted November 7, 2013 what is your url? Link to comment Share on other sites More sharing options...
webbie1985 Posted November 7, 2013 Author Share Posted November 7, 2013 http://www.swifttrading.co.uk Link to comment Share on other sites More sharing options...
El Patron Posted November 7, 2013 Share Posted November 7, 2013 check your DNS using http://dnscheck.pingdom.com no SOA and it looks like your name servers are for the old domain Link to comment Share on other sites More sharing options...
webbie1985 Posted November 7, 2013 Author Share Posted November 7, 2013 thanks ive emailed my hosting company, do you think this will sort it Link to comment Share on other sites More sharing options...
El Patron Posted November 7, 2013 Share Posted November 7, 2013 On 11/7/2013 at 3:01 PM, webbie1985 said: thanks ive emailed my hosting company, do you think this will sort it ...I have my fingers crossed.... Link to comment Share on other sites More sharing options...
El Patron Posted November 7, 2013 Share Posted November 7, 2013 something else occurred to me, check that you have the proper url's.... back office-->preferences-->seo and urls scroll down to shop/ssl domain...and make sure that have this shops urls... Link to comment Share on other sites More sharing options...
webbie1985 Posted November 7, 2013 Author Share Posted November 7, 2013 it has got my url www.swifttrading.co.uk Link to comment Share on other sites More sharing options...
webbie1985 Posted November 8, 2013 Author Share Posted November 8, 2013 the hosting company got back to me this morning and told me that shouldnt have any effect on the redirect loop. any other ideas guys Link to comment Share on other sites More sharing options...
TheLousyCoder Posted November 19, 2014 Share Posted November 19, 2014 Hi webbie1985 , even I am getting same error. Actually we are migrating to amazon, everything works fine but when trying to login , it throws an error "this page has too many redirections". Please tell how you get it resolved. Thanks in advance. Link to comment Share on other sites More sharing options...
kyoaku Posted February 20, 2015 Share Posted February 20, 2015 Hi, i have the same problem, BO is ok, the .htaccess is generated by the BO, but the FO makes redirect loops... In the BO in SEO & URL I have my domain and sub-domain. In the DB I have changed the values PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL in ps_configuration and ps_shop_url. Have you any solution? Thanks. Link to comment Share on other sites More sharing options...
Daniel - PrestaBR Posted April 18, 2015 Share Posted April 18, 2015 No luck?!? For me it works only with Forced SSL on all pages... 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