johnlewisdesign Posted October 7, 2011 Share Posted October 7, 2011 Hi guys I just locked myself out of my shop's backoffice trying to move from a temporary hosting domain name to a live one. It was installed on shared hosting, and the shop was installed using a 1 click installer. I installed to (lets call it) http://11.23.456.78/myshopdomain.co.uk/shop/ I just fixed it, and having searched the web for the solution, I couldn't find one. So, I thought I'd d the decent thing and post my solution so nobody else got stuck like me. My change was moving from a subfolder to root, and temp name to live. http://11.23.456.78/myshopdomain.co.uk/shop/ needed to be http://www.mylivedomain.co.uk/ The front end was working, but backoffice was locked out. It kept redirecting me to /admin/login.php?redirect=index.php In config/settings.ing.php was the temp domain name, /11.23.456.78/myshopdomain.co.uk/ I replaced this with /mylivedomain.co.uk/ That was the wrong move. I started with renaming .htaccess in case this was at fault. It didn't make any difference, but it isn't a bad idea to do so. What you need to do primarily is go to config/settings.inc.php and replace with a / (and only a slash, nothing more, nothing less)! This setting is in the line define('__PS_BASE_URI__', '11.23.456.78/myshopdomain.co.uk/shop/'); Just change it to define('__PS_BASE_URI__', '/'); Instantaneously you regain access to your backoffice, and are prompted to change URLs, turn on SEF URLs and recreate the .htaccess - voila, you are back in the room! I hope this helps someone avoid a situation like mine. I almost missed my deadline because of it, so felt it was important to post back my solution. All the best, John 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