Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Subdomain Redirect


roweash

Recommended Posts

Hello,

 

I've looked around other threads, and tried numerous suggestions, but I cannot find the answer to my problem...

 

I was accessing the store on my website with mysite.com/store, but I have had the SSL installed to store.mysite, so I'm now having to redirect the store. I've got the subdomain set up with my hosting company, and I've tried a number of suggestions regarding changing the configure.php file...

 

 define('HTTP_SERVER', 'http://store.mysite.com');
  define('HTTPS_SERVER', 'https://store.mysite.com');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/store/');
  define('HTTPS_COOKIE_PATH', '/store/');
  define('DIR_WS_HTTP_CATALOG', '/store/');
  define('DIR_WS_HTTPS_CATALOG', '/store/');
  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', 'pub/');
  define('DIR_FS_CATALOG', '/home/user/public_html/store/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

and the htaccess.... 

 

RewriteEngine on
RewriteBase /
RewriteRule ^/store/(.*)$ https://store.mysite.com/$1 [R=301,L]

 

Nothing seems to be working. Do I need to change the WS_INCLUDES in some way?

 

Any advise would be appreciated,

Thanks

 

 

Link to comment
Share on other sites


define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...