drroot Posted April 19, 2012 Share Posted April 19, 2012 Currently I installed PS under public_html/test, but I want to move it to public_html Any idea how to do this? Link to comment Share on other sites More sharing options...
hxd Posted April 19, 2012 Share Posted April 19, 2012 Basically, you need to copy the files from /public_html/test and paste them directly in the root public_html folder. Then edit the file settings.inc.php (public_html/config/settings.inc.php). Change the line: define('__PS_BASE_URI__', '/test/'); into: define('__PS_BASE_URI__', '/'); Then log in to the back office using the root URL address, go to the Preferences tab>SEO & URLs sub-tab and change the path to the shop in the field for PS directory; in this case it's the root (e.g. /). You don't have to change any database names or prefixes in the config file since you're not moving to a different server, and I assume you'll be using the same database. You'll also need to regenerate the robots.txt file and the .htaccess file. You can do this from Tools tab>Generators sub-tab. To remove the old shop just delete the contents of /public_html/test. Before you start the transfer you may consider disabling the shop (if it's in production mode at all), although this whole thing shouldn't take more than a few minutes. Hope this helps. 1 Link to comment Share on other sites More sharing options...
drroot Posted April 19, 2012 Author Share Posted April 19, 2012 Cool. Thanks, @hxd Link to comment Share on other sites More sharing options...
the hat lady Posted October 27, 2012 Share Posted October 27, 2012 I tried to establish a test site in a subfolder but have trouble connecting the database and it will not let be log into the back office even though i changes the url. Any help would be appreciated Link to comment Share on other sites More sharing options...
Recommended Posts