willowtree Posted October 10, 2021 Share Posted October 10, 2021 Hello, I am trying to move presta from a subdir to the root now it is ready to launch. It has all moved, and I can login to the backend. however - when I try to navigate the backend -eg to configure modules that need links updating etc it kicks me out and won't let me log back in as it rejects my password. From the same URL if I remove the redirect=AdminModules and the token it goes direct to the dashboard? Link to comment Share on other sites More sharing options...
endriu107 Posted October 10, 2021 Share Posted October 10, 2021 Did your shop doamin change? You can try remove htaccess file and also clear var/cache folder. Link to comment Share on other sites More sharing options...
willowtree Posted October 10, 2021 Author Share Posted October 10, 2021 the domain didn't change, just the sub directory. I did change that in the prefs before moving it. I have tried renaming the .htaccess file and incognito window in Chrome and still cannot access areas. I followed this guide to move it, https://www.prestashop.com/en/blog/how-to-migrate-prestashop-to-a-new-server Link to comment Share on other sites More sharing options...
willowtree Posted October 10, 2021 Author Share Posted October 10, 2021 removing the .htaccess led to 404 errors on my main menu Link to comment Share on other sites More sharing options...
Rhobur Posted October 11, 2021 Share Posted October 11, 2021 (edited) If the site was in a subfolder, check ps_shop_url and make sure physical_url is "/" (without quotes) and the domain/domain_ssl are correct (the same domain has to appear in the ps_configurarion table, search for the PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSl keys). Also remove the var/cache/ (relative to PS_ROOT) content. Edited October 11, 2021 by Rhobur spelling (see edit history) Link to comment Share on other sites More sharing options...
willowtree Posted October 11, 2021 Author Share Posted October 11, 2021 That all looks correct: Shop domain is the main domain, SSL domain is the main domain (root folder) Base URI is / in the SEO and URLS area of the back end. In the Database ps_configuration table, the PS_SHOP_DOMAIN and PS_?SHOP_DOMAIN_SSL are both the same main domain as in the back end. I can't see a physical_url value in the table. Cache has been emptied. I still cannot login when it kicks me out trying to configure a module. Link to comment Share on other sites More sharing options...
Rhobur Posted October 11, 2021 Share Posted October 11, 2021 you didn't exactly read my post did you? Quote check ps_shop_url and make sure physical_url is "/" (without quotes) the table is shop_url with your table prefix, default ps_ Link to comment Share on other sites More sharing options...
willowtree Posted October 11, 2021 Author Share Posted October 11, 2021 Hi, to be honest I read it about 3 times, I wasn't sure what was a table, a line in a config file or a back end setting etc. physical_uri in the ps_shop_url table is / Link to comment Share on other sites More sharing options...
Rhobur Posted October 11, 2021 Share Posted October 11, 2021 Deleted the the var/cache/ and the .htaccess? Link to comment Share on other sites More sharing options...
willowtree Posted October 11, 2021 Author Share Posted October 11, 2021 I haven't deleted the .htaccess - when I tried that earlier I got 404 errors everywhere Link to comment Share on other sites More sharing options...
willowtree Posted October 15, 2021 Author Share Posted October 15, 2021 Does anyone else have any ideas? I'm really stuck! Link to comment Share on other sites More sharing options...
musicmaster Posted October 17, 2021 Share Posted October 17, 2021 - removing .htaccess and regenerating it again in the backoffice is important and cannot be skipped. - the backoffice should not be dependent on directory or .htaccess. The kind of problems you report make me doubt whether you moved all the files correctly. Link to comment Share on other sites More sharing options...
willowtree Posted October 18, 2021 Author Share Posted October 18, 2021 I have misunderstood the regenerating it in the back office - the 404 errors were on the front end. It looks like it might be some kind of cookie issue - I have tried deleting all cookies which didn't help - but I could access everything in a chrome incognito window. I can now acces it all normally so I am assuming the cookie finally updated 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