Author Topic: Moving to a different subdomain, keeping files and db  (Read 337 times)

Offline usr238496

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 0
  • CiviCRM version: latest
  • CMS version: joomla2.5
  • PHP version: 5 something
Moving to a different subdomain, keeping files and db
« on: June 18, 2012, 09:35:16 am »
I have just moved my website to a new subdomain (from a different subdomain and subfolder - it was a test site now going live)

However, the civi menus all try and force the old subfolder into the URL, thus creating a link that does not exist.

I have found the following
Code: [Select]
$civicrm_root = '/root/path/to/civi';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/my/path/media/civicrm/templates_c' );
and modified to point to the correct folders, but still the problem persists.

Where else do I need to change?

cheers
You did not answer the verification questions correctly - sigh

Offline usr238496

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 0
  • CiviCRM version: latest
  • CMS version: joomla2.5
  • PHP version: 5 something
Re: Moving to a different subdomain, keeping files and db
« Reply #1 on: June 18, 2012, 09:36:32 am »
Probably the same issue, but when the page is loading the browser status bar says it is download content from both the new and old subdomains
You did not answer the verification questions correctly - sigh

Offline usr238496

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 0
  • CiviCRM version: latest
  • CMS version: joomla2.5
  • PHP version: 5 something
Re: Moving to a different subdomain, keeping files and db
« Reply #2 on: June 18, 2012, 01:07:51 pm »
Ok figured it out, adding it here so if anyone else has a similar problem, hopefully they find this post.

In the old site (i hope you didn't get too hasty and deleted then I do not know how to help you) go to civi > administer > system site settings > resource urls:

change the two urls to the new site (the reason you have to do it in the old site, is if you try and change the settings in the new site, the form will try and submit to the old site and give you some errors.

Now in the new site via FTP grab the settings files at components/com_civi/
There are three files here, I think the only you need is something like site.settings.civi.php, but grab them all anyway.
Change all urls to the new locations.
Reupload the files.

Bingo, you're done
You did not answer the verification questions correctly - sigh

Offline Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 3586
  • Karma: 134
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly Drupal
Re: Moving to a different subdomain, keeping files and db
« Reply #3 on: June 19, 2012, 03:08:13 am »
You can also visit

civicrm/menu/rebuild?reset=1

and CiviCRM will rebuild the menus.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

Offline usr238496

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 0
  • CiviCRM version: latest
  • CMS version: joomla2.5
  • PHP version: 5 something
You did not answer the verification questions correctly - sigh

Offline Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 3586
  • Karma: 134
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly Drupal
Re: Moving to a different subdomain, keeping files and db
« Reply #5 on: July 10, 2012, 10:04:52 am »
I believe the URL is

http://<your_joomla_home>/administrator/index.php?option=com_civicrm&task=civicrm/menu/rebuild?reset=1
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007