Jump to content

Redirect Loop .HTACCESS file


Recommended Posts

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

.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

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 by webbie1985 (see edit history)
Link to comment
Share on other sites

  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

  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

  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

  • 1 year later...
  • 3 months later...

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

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...