flyinfish Posted March 19, 2016 Share Posted March 19, 2016 I would be so grateful for any help as I'm not that tech savvy I was making a minor change to my shop using FTP (Coda actually), just swapping an image, and I think i may have accidentally changed something My shop won't load at all now. If you enter the shop URL it just reverts to the parent website. I also cannot access my backend, again just reverts to parent site. Someone suggested I may have altered/deleted my .htaccess file, and indeed i cannot find it anywhere in the store root directory. I have some old store back ups. I can't even tell you what version of Prestashop I'm running, but it is old as I haven't updated for quite a while. If anyone can suggest some options for overcoming this problem, I would be so grateful )) I've completely lost my shop! Have attached image of directory as it appears now. Link to comment Share on other sites More sharing options...
endriu107 Posted March 19, 2016 Share Posted March 19, 2016 Maybe your hosting provider did make copy of your store, so just ask them. Link to comment Share on other sites More sharing options...
flyinfish Posted March 20, 2016 Author Share Posted March 20, 2016 Hi. Thanks for the reply. I do have back ups, although a more recent version would be not so much work to update. So, no suggested shortcuts? Just restore from back up the only option? Link to comment Share on other sites More sharing options...
shokinro Posted March 20, 2016 Share Posted March 20, 2016 My shop won't load at all now. If you enter the shop URL it just reverts to the parent website. I also cannot access my backend, again just reverts to parent site. After moving the store, you need to regenerate the .htaccess file, because it is pointing to old one. You can go to back office admin page to change the domain name and store folder first - Preferences - SEO & URSs tab. Make sure the setting is correctly and then click save, it should trigger the .htaccess re-generated. If that does not work, please try to switch off/save and then switch back on of SEO friednly URL, it should also trigger .htaccess re-generated. Link to comment Share on other sites More sharing options...
flyinfish Posted March 23, 2016 Author Share Posted March 23, 2016 After moving the store, you need to regenerate the .htaccess file, because it is pointing to old one. You can go to back office admin page Thanks, but I haven't moved the store? So I don't know what you mean. Also, as I have said in my post, I can't access the back office admin at all... so I can't follow your suggestions. Is there a way I can generate the .htaccess file by going straight to the files using FTP? Link to comment Share on other sites More sharing options...
flyinfish Posted March 23, 2016 Author Share Posted March 23, 2016 My host only has back ups that postdate problem, so my only other option is to restore from very old back up Link to comment Share on other sites More sharing options...
shokinro Posted March 23, 2016 Share Posted March 23, 2016 you try to rename the .htaccess to something else, so it will not be in action. then try to go back to back office to regenerate it. Link to comment Share on other sites More sharing options...
flyinfish Posted March 24, 2016 Author Share Posted March 24, 2016 Thanks. As I have said, I can't access the back office. Link to comment Share on other sites More sharing options...
shokinro Posted March 24, 2016 Share Posted March 24, 2016 what is the error message? If the cause of the back office is related to .htaccess, then if you removed the .htaccess should fix the issue. unless it is caused by .htacess in parent directly. Link to comment Share on other sites More sharing options...
flyinfish Posted March 24, 2016 Author Share Posted March 24, 2016 There is no error message. Entering the shop URL just reverts to the parent website (my online shop is linked to my main website). Same thing happens when I try to access back end. The URL reverts to the parent website. eg 'www.site.com/online-shop' reverts to 'www.site.com'. I have no idea why, or what I have done Link to comment Share on other sites More sharing options...
shokinro Posted March 24, 2016 Share Posted March 24, 2016 I think your store previous was under www.site.com, but later you moved to www.site.com/online-shop, is that correct? have you tried to rename .htaccess under both folder and see if it works? you may also try to change the setting in database directly in following table ps_shop_url Link to comment Share on other sites More sharing options...
El Patron Posted March 25, 2016 Share Posted March 25, 2016 note: typically .htaccess is 664 (hidden) unlike typical file 644. so you may need to set your ftp program to display hidden files. Link to comment Share on other sites More sharing options...
flyinfish Posted March 26, 2016 Author Share Posted March 26, 2016 Thanks everyone for your help. I ended up checking store directory against files and folders from my back up, and discovered I had accidentally deleted the 'Classes' folder. Just replaced it from my back up, and everything is up and running again Must be more careful with FTP changes... 1 Link to comment Share on other sites More sharing options...
shokinro Posted March 26, 2016 Share Posted March 26, 2016 glad you finally figured out. if the classes folder is missing, then there should be some error message. 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