Forgot To Change Storefront Url

So, after i finished store import (V4.2) I asked my host to copy whole site from folder “new_store” to the root.

But I forgot to change the storefront URL now I can’t login to admin.

It keeps saying that this page has too many redirections.

I’ve changed the config_local, cleared cache but i guess this is not enough.



Is it possible to change storefront URL in DB and if yes, which table?



thanks

[quote name='UrKo' timestamp='1408521186' post='190041']

So, after i finished store import (V4.2) I asked my host to copy whole site from folder “new_store” to the root.

But I forgot to change the storefront URL now I can't login to admin.

It keeps saying that this page has too many redirections.

I've changed the config_local, cleared cache but i guess this is not enough.



Is it possible to change storefront URL in DB and if yes, which table?



thanks

[/quote]



Please use the “cscart_companies” table to change store-front URLs.

thank you :)

saved my life :)

Hello,



You can use the Administration > Database page of your CS-Cart admin panel to back up the table and restore it back after editing.

[quote name=‘UrKo’ timestamp=‘1408522737’ post=‘190047’]

thank you :)

saved my life :)

[/quote]



You are welcome!

On more thing.

Now that the store is in root folder I've notioced that SEO was disabled and can't enable it.

I get this message:

[quote]Warning: SEO-friendly URLs are disabled. Check your web server and URL manipulation engine settings.[/quote]

I contact my host and they said that nothing has been changed.



Any ideas?

thanks

Try to comment out the RewriteBase parameter is the .htaccess file



Hope that helps.

My host checked it and said he found a solution, that was published on this forum about possible bug is SEO?!!!

He added this code:


/* if (strpos($headers, '200 OK') === false) {
$new_value = 'D';
fn_set_notification('W', __('warning'), __('warning_seo_urls_disabled'));
} */




here:

[quote]/addons/seo/schemas/settings/actions.functions.post.php[/quote]



After changing this, the SEO was enabled and works!

Without checking the value of the $headers variable, we cannot say anything about the issue

what part of the code I need to show so you can check?