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?
should look like the example below:
- Example:
- Your url is [url]http://www.yourcompany.com/store/cart[/url]
- $config[‘http_host’] = ‘www.yourcompany.com’;
- $config[‘http_path’] = ‘/store/cart’;
-
- Your secure url is [url]https://secure.yourcompany.com/secure_dir/cart[/url]
- $config[‘https_host’] = ‘secure.yourcompany.com’;
- $config[‘https_path’] = ‘/secure_dir/cart’;
[quote name=‘snorocket’]should look like the example below:
- Example:
- Your url is [url]http://www.yourcompany.com/store/cart[/url]
- $config[‘http_host’] = ‘www.yourcompany.com’;
- $config[‘http_path’] = ‘/store/cart’;
-
- Your secure url is [url]https://secure.yourcompany.com/secure_dir/cart[/url]
- $config[‘https_host’] = ‘secure.yourcompany.com’;
- $config[‘https_path’] = ‘/secure_dir/cart’;[/QUOTE]
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?
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
[url]http://www.mydomain.com/store[/url]
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.
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 ?