Installation on Domain.com and not www.domain.com?

Hey there fellow cs-carters,



I am having a slight issue and I would like to get some advice.



I have installed a new installation of cs-cart to my new domain name for my new project.



Installation was a success, however, when I go to my domain by typing “www.domain.com” it does not pull up my site and only pulls up the hostgator landing page, and when I type in “domain.com” it brings up the cs-cart.



Has this happened to anyone else? I am wondering if it is something within the cs-cart files I have to change to make it so both with www. and without go to my new cs-cart site or if it is something on my servers end and domain registrar end.



Any advice would be great, let me know if ya need any additional info to give me a more accurate answer



Thanks :-)

First check your .htaccess file. It should look something similar to:


```php DirectoryIndex index.html index.php





RewriteEngine on

Some hostings require RewriteBase to be uncommented

Example:

Your store url is http://www.yourcompany.com/store/cscart

So “RewriteBase” should be:

RewriteBase /store/cscart

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php?sef_rewrite=1 [L,QSA]

RewriteRule ^(.*.(js|css))$ smartoptimizer/?$1

```



Then in your config.local.php you should have something like:


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

// Host and directory where software is installed on secure server
$config['https_host'] = 'www.your-domain.com';
$config['https_path'] = '';




If the www part is missing, maybe you need to add that.



Hope that helps.



Brandon

Thanks for the reply Brandon!



Oddly enough, the situation resolved itself. Not sure what it was, maybe I just had to give it time to propagate properly across all the platforms.



If this problem comes up again I shall use your info and post back



Thanks any-who