site redirects... strange

Im liking what I see so far… But a bit lost why the domain redirects after I tried to go live.



Scenario;



Install on Godaddy DELUXE SHARED HOSTING



did temp install on www.TempDomain.com/CS-CART/





Everything worked great. I added 70+ products and it runs smoothly,



Today I decided to try the site live. So I “added a domian” to that hosing account.



www.DOMAIN.com





Now when I type in www.Domain.com the URL changes to www.TempDomain.com/CS-CART/





Its almost like its redirecting.



here is what I changed the .htaccess to.

```php DirectoryIndex index.html index.php





RewriteEngine on

Some hostings require RewriteBase to be uncommented

Example:

Your store url is http://www.DOMAIN.com/

So “RewriteBase” should be:

RewriteBase /CS-CART

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

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



RewriteCond %{REQUEST_FILENAME} ./catalog/.

RewriteCond %{REQUEST_FILENAME} -d

RewriteCond %{REQUEST_FILENAME}/index.html !-f

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



```



I still cant help to think it has something to do with the .htaccess …

Did you change your config.local.php file to reflect the change?

```php /*

  • Script location options

    *
  • 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.yourcompany.com/secure_dir/cart
  • $config[‘https_host’] = ‘secure.yourcompany.com’;
  • $config[‘https_path’] = ‘/secure_dir/cart’;

    *

    */



    // Host and directory where software is installed on no-secure server

    [COLOR=“red”]$config[‘http_host’] = ‘%HTTP_HOST%’;

    $config[‘http_path’] = ‘%HOST_DIR%’;
    [/COLOR]



    // Host and directory where software is installed on secure server

    [COLOR=“red”]$config[‘https_host’] = ‘%HTTPS_HOST%’;

    $config[‘https_path’] = ‘%HOST_DIR%’;
    [/COLOR]

    ```





    Bob

Did you make the necessary changes to the /config.local file?



Edit: I don’t know why I even bother when jobo is around. LOL :slight_smile:

[quote name=‘Tool Outfitters’]Did you make the necessary changes to the /config.local file?



]Edit: I don’t know why I even bother when jobo is around. LOL :)][/QUOTE]



So I can thank both of you… THANK YOU … :smiley: :smiley: :smiley:

it works