Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Move Test Shop to Root


Recommended Posts

@pandrei

I am testing a site move to another folder. Everything seems to work, except there is a persistent redirect after the Admin login to the old admin folder. I have cleared browser cache and emptied the session tables in the database. What else could be causing the redirect ?

 

Link to comment
Share on other sites

Posted (edited)
On 6/1/2024 at 8:24 PM, Hotclutch said:

What is the recommended way or guidance to move a test shop in a test folder to root when going live ?

Let's assume your root folder is public_html, and the subfolder in which you installed the osCommerce is v4

Here the steps:

1. Clear all files and dirs in public_html except v4 folder.

2. Move all files and dirs from v4 to public_html folder and then delete v4 folder.

3. Edit admin/includes/local/configure.php file and change these lines (remove "v4/"):

define('DIR_WS_ADMIN', '/admin/');
...
define('DIR_WS_CATALOG', '/');

4. Login into the Admin panel by using new url: htts://your-site/admin

5. Go to the Sales channels menu, edit your sales channels and change Sales channel url

6. Go to the Settings->Cache control and flush all caches

Edited by pandrei
Link to comment
Share on other sites

I have now moved the test shop to the root, but I notice that WHOS ONLINE records do not update. The last few entries are still from the v4 folder, and then nothing thereafter. @pandrei i have sent you a PM with the new admin folder location if you can take a look.

Link to comment
Share on other sites

Hi,

I interested in the root thing. I saw the option when I was recently messing about with the themes. 
 

:

What is the advantage?

Should it be done? Do I have to do it? Please explain.
 

Currently from my root I have different folders for different sites on public html e.g. a WP site on one of the folders. 
 

Thank you,

Lorraine 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...