Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

how to install cs cart in a sub domain Rate Topic   - - - - -

 
  • gabrieluk
  • Senior Member
  • Members
  • Join Date: 21-Jul 09
  • 133 posts

Posted 05 February 2010 - 03:08 AM #1

Hi,
i would like to install cs cart in a subdomain.
i'm doing everything properly,but when it cames the part i should insert:

Server host name http:// www.shop.mydomain.com
Server host directory ( empty)
Secure server host name https://www.shop.mydomain.com
Secure server host directory (empty)
This setup is not working....
it says it cannot connect with DB server....
Any advice?
Number 1

 
  • snorocket
  • Forum Janitor
  • Members
  • Join Date: 15-Mar 06
  • 2519 posts

Posted 05 February 2010 - 03:15 AM #2

should look like the example below:

* Example:
* Your url is http://www.yourcompany.com/store/cart
* $config['http_host'] = 'www.yourcompany.com';
* $config['http_path'] = '/store/cart';
*
* Your secure url is https://secure.yourc...secure_dir/cart
* $config['https_host'] = 'secure.yourcompany.com';
* $config['https_path'] = '/secure_dir/cart';
SNOROCKET.COM, Now Accepting PRE-ORDERS:
Customer Service (Helpdesk) Addon for CS-Cart v4.3.1
Quote and Invoicing Addon for CS-Cart v4.3.1

 
  • gabrieluk
  • Senior Member
  • Members
  • Join Date: 21-Jul 09
  • 133 posts

Posted 05 February 2010 - 03:39 AM #3

should look like the example below:

* Example:
* Your url is http://www.yourcompany.com/store/cart
* $config['http_host'] = 'www.yourcompany.com';
* $config['http_path'] = '/store/cart';
*
* Your secure url is https://secure.yourc...secure_dir/cart
* $config['https_host'] = 'secure.yourcompany.com';
* $config['https_path'] = '/secure_dir/cart';

Hi,
taking your example,it means that,in my case, the folder /cart,would be also the folder of the SUBDOMAIN www.cart.mydomain.com...
Is that correct?
Number 1

 
  • D-Litz
  • Member
  • Members
  • Join Date: 30-Jun 09
  • 45 posts

Posted 05 February 2010 - 04:25 AM #4

I just installed cs-cart into a sub domain like this


store.mydomain.com

The installation created the config.local.php like this

// Host and directory where software is installed on no-secure server
$config['http_host'] = 'store.mydomain.com';
$config['http_path'] = '';

// Host and directory where software is installed on secure server
$config['https_host'] = 'store.mydomain.com';
$config['https_path'] = '';


What Sno posted above would be if you had your store like this

http://www.mydomain.com/store

So, if you have your cart files under a sub domain use the first example. If you have your cart files under a sub directory then use Sno's example.



Hope that helps.

 
  • gabrieluk
  • Senior Member
  • Members
  • Join Date: 21-Jul 09
  • 133 posts

Posted 05 February 2010 - 04:15 PM #5

it does help.Thanks!
Do you know if it's possible to have cannonical url's for the sub domain?if yes how should i do the 301?
Also,there's something i don't understand regarding the sub domain...even if i have a sub domain example: store.mydomain.com , i still can acess the folder mydomain.com/store.
Is that correct?or should i do some redirect from /store to store.mydomain ?
Number 1