How to transfer cs-cart from subdirectory

Hi,

I would like to ask you for advice. I have cscart in subdirectory, eg. www.domain.com/test. I need to transfer it to the main domain www.domain.com. what should I do for a successful transfer.



Many thanks for your advice.



Richard

Slovakia

[quote name=‘editorbb’]Hi,

I would like to ask you for advice. I have cscart in subdirectory, eg. www.domain.com/test. I need to transfer it to the main domain www.domain.com. what should I do for a successful transfer.



Many thanks for your advice.



Richard

Slovakia[/quote]

Move all your files (e.g. gziped) to the root (public folder) and edit your config.local.php file like this:


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

$config[‘http_host’] = ‘www.domain.com’;

$config[‘http_path’] = ‘’;



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

$config[‘https_host’] = ‘www.domain.com’;

$config[‘https_path’] = ‘’;[/quote]



and the .htaccess file like this:


[QUOTE]DirectoryIndex index.html index.php





RewriteEngine on

Some hostings require RewriteBase to be uncommented

Example:

Your store url is [url]http://www.yourcompany.com/store/cart[/url]

So “RewriteBase” should be:

RewriteBase /store/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]





[/QUOTE]

Thank you!!! You made me happy :slight_smile: