Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is it possible to access downloads from a sub site?


Recommended Posts

Hi Alex

 

I hope you are well.

 

I run an mp3 downloads store. I´m running OS RC2 on a unix server and am using your rather wonderful SDS (which you gave me some good advice on setting up some time ago). All is good on the site and the SDS is working perfectly.

 

I'm now getting ready to launch the Brazilian version of the site (same server, same appearance, different language/pricing policy/database) and want to know if its possible to access the downloads from the main site rather than copying all of the files onto the Brazilian site (and therefore needing to double storage capacity by 1 tb!!).

 

I tried direct paths to the folders, turning on redirect and nothing seems to work. I'm really pulling my hair out over this one. There must be a way of doing it.

 

The URL for my main site is:

http://www.theelectric-underground.com/catalog/default.php

 

and the Brazilian site is:

http://www.theelectric-underground.com/teu...log/default.php

 

Here is the code for my cat/inc/config.php file.

<?php
 define('HTTP_SERVER', 'http://www.theelectric-underground.com');
 define('HTTPS_SERVER', 'http://www.theelectric-underground.com');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'www.theelectric-underground.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.theelectric-underground.com');
 define('HTTP_COOKIE_PATH', '/teu/catalog/');
 define('HTTPS_COOKIE_PATH', '/teu/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/teu/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/teu/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', '/home/theelec/public_html/catalog/pub/');
 define('DIR_FS_CATALOG', '/home/theelec/public_html/teu/catalog/');
 define('DIR_FS_DOWNLOAD', '/home/theelec/public_html/catalog/download/');
 define('DIR_FS_DOWNLOAD_PUBLIC',  '/home/theelec/public_html/catalog/pub/');


?>

 

Please, if you could have a quick look and see if you can spot any glaring errors or offer any advice it would be much appreciated.

 

Many, many thanks

 

Terry

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