0

we are migrating from one domain to another domain.

usually we will foloow the procedure of

"open the database file in notepadd++ software and find and replace

old-doamin-name to new-domain-name.

but as the database file size is 1000mb, we can not able to do in notepad++

we change the base urls in core_config_data table.

but now only home page is working the new domain but rest of the other pages is still

redirecting to old domain.

so is there any way in phpmyadmin or through ssh, we can change the old doamin name to new domain name in all places

thanks in advance

1 Answer 1

1

Normally all you need to do is to log in to your database and update the base urls

update core_config_data set value = 'http://newdomain.com/' where path = 'web/unsecure/base_url'; 
update core_config_data set value = 'http://newdomain.com/' where path = 'web/secure/base_url';

Then clear cache.

If you are still having issues trying log in to the admin and reindex or reindex using the command line

php indexer.php --reindexall

You could also using sed to find and replace see How can I replace a string in a file(s)?

7
  • i updated in core_config_data before , but still i am facing the issue after clearing cache. even admin panel is redirecting to old domain. Commented Jul 23, 2015 at 11:42
  • ssh into the server and try reindex. Also try open the site in a "new incognito view" to make sure it bot browser cache Commented Jul 23, 2015 at 11:45
  • i will try the above command Commented Jul 23, 2015 at 11:50
  • i used ssh : "i am facing this error : could not open input file" Commented Jul 23, 2015 at 12:01
  • 1
    cd to your [webroot] then php shell/indexer.php --reindexall Commented Jul 23, 2015 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.