Jump to content

Moving CubeCart up a directory?


Guest hoecake

Recommended Posts

Guest hoecake

Is there an easy way to move your cubecart store up a directory? My site is at mydomain.com/cart/ and I want to move it up just to the mydomain.com. Is there any easy way to do this?

Thanks,

Robert

Link to comment
Share on other sites

Guest KGBelectronics

Is there an easy way to move your cubecart store up a directory? My site is at mydomain.com/cart/ and I want to move it up just to the mydomain.com. Is there any easy way to do this?

Thanks,

Robert

BACKUP FIRST

Copy the files from the /cart directory to the destination directory

Modify the includes/global.inc.php file to change the references from mydomain.com/cart to mydomain. Be careful to maintain the slashes. As a rule :

$glob['rootDir'] = No trailing slash

$glob['rootRel'] = Has a trailing slash

$glob['storeURL'] = No trailing slash

If you have no mods that have fixed references (as opposed to relative ones) that should be all. Only testing will tell ...

The /cart directory can be deleted or left intact to serve as a backup (up to you), just test EVERYTHING first.

Cheers,

Ken

Link to comment
Share on other sites

As far as testing goes, it's better to change the name of the original subdirectory, or the absolute references will still find the original files and no errors will be apparent.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

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

Guest
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...