Answers.Body: <p>This is basically a system admin question rather CiviCRM specific. I personally don't have very good experience in doing this but when there is URL changes</p>
  
  <ol>
  <li>Make sure your new domain is pointing to correct server IP</li>
  <li>Update the url in apache or nginx conf.</li>
  <li>Update .htaccess file in your site directory if its using any base url.</li>
  <li>Update the base url in wp-settings.php or drupal's settings.php file.</li>
  <li>Update the base url in civicrm.settings.php file</li>
  <li>Clear drupal and civicrm cache</li>
  <li>If using wordpress you may need to update in database </li>
  </ol>
  
  <p>Query:</p>
  
  <pre><code>UPDATE wp_options SET option_value = 'http://new_domain.org' WHERE option_name IN ('siteurl', 'home');
  </code></pre>
  
  <p>Cheers</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-21T15:29:03.393Z
Answers.Text: Perfect! It was Item 7 that did the trick. I changed the domain name in the database as all is good. Thank you very much. I had been struggling for a long time with this.
Answers.UserDisplayName: Vietyank
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-21T14:51:36.360Z
Answers.LastActivityDate: 2019-06-21T14:51:36.360Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p><strong>CiviCRM 5.14.0</strong></p>
  
  <p>I've read several explanations of how to change a sites URL but I am not having luck. I have made the changes in my apache2 sites-available conf file and restarted apache2. I have also changed the base in civicrm.settings.php. Now the new URL just goes to the Apache default page.</p>
  
  <p>Some things I have read say I have to clear the CiviCRM cache but I can't do that if I cannot access the site.</p>
  
  <p>Any suggestions?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-21T14:52:47.317Z
Comments.Text: What CMS are you using? Wordpress / Drupal / etc
Comments.UserDisplayName: Jade
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-21T14:56:56.763Z
Comments.Text: If you're getting the Apache default page, the CiviCRM cache (and CiviCRM in general) isn't the issue here.  This may be a better question for Stack Overflow, since it's an Apache configuration issue.
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-21T15:16:07.097Z
Comments.Text: Wordpress 5.2.2. I have changed the server name in the Apache2 .conf file in sites-available to specify the new domain.
Comments.UserDisplayName: Vietyank
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-21T17:16:00.047Z
Comments.Text: It was not an Apache configuration. It was a combination of Wordpress and CiviCRM settings that needed to be done
Comments.UserDisplayName: Vietyank
Tags: <installation>
Title: How to change a sites URL
ThreadText: # How to change a sites URL
  
  (Asked by: username_0 on 2019-06-21)
  
  **CiviCRM 5.14.0**
  
  I've read several explanations of how to change a sites URL but I am not having luck. I have made the changes in my apache2 sites-available conf file and restarted apache2. I have also changed the base in civicrm.settings.php. Now the new URL just goes to the Apache default page.
  
  Some things I have read say I have to clear the CiviCRM cache but I can't do that if I cannot access the site.
  
  Any suggestions?
  
  **Tags:** installation
  
  > **Comments:**
  > **username_1**: What CMS are you using? Wordpress / Drupal / etc  
  > **username_2**: If you're getting the Apache default page, the CiviCRM cache (and CiviCRM in general) isn't the issue here.  This may be a better question for Stack Overflow, since it's an Apache configuration issue.  
  > **username_0**: Wordpress 5.2.2. I have changed the server name in the Apache2 .conf file in sites-available to specify the new domain.  
  > **username_0**: It was not an Apache configuration. It was a combination of Wordpress and CiviCRM settings that needed to be done  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2019-06-21. Score: 1 | Accepted answer
  
  This is basically a system admin question rather CiviCRM specific. I personally don't have very good experience in doing this but when there is URL changes
  
  1. Make sure your new domain is pointing to correct server IP
  2. Update the url in apache or nginx conf.
  3. Update .htaccess file in your site directory if its using any base url.
  4. Update the base url in wp-settings.php or drupal's settings.php file.
  5. Update the base url in civicrm.settings.php file
  6. Clear drupal and civicrm cache
  7. If using wordpress you may need to update in database
  
  Query:
  
  ```
  UPDATE wp_options SET option_value = 'http://new_domain.org' WHERE option_name IN ('siteurl', 'home');
  
  ```
  
  Cheers
  
  username_3
  
  > **Comments:**
  > **username_0**: Perfect! It was Item 7 that did the trick. I changed the domain name in the database as all is good. Thank you very much. I had been struggling for a long time with this.  
  
  ---
  
  