CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Moving to a different subdomain, keeping files and db
Pages: [1]

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

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
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

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
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

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
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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Moving to a different subdomain, keeping files and db
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

See here for the official: What to do if you think you've found a bug.

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
July 10, 2012, 06:42:56 am
tried
http://domain.com/administrator/components/com_civicrm/civicrm/menu/rebuild?reset=1

gives a 404
You did not answer the verification questions correctly - sigh

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Moving to a different subdomain, keeping files and db
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

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Moving to a different subdomain, keeping files and db

This forum was archived on 2017-11-26.