Answers.Body: <p>I updated CiviCRM, and all seems fine now!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-25T08:25:08.083Z
Answers.LastActivityDate: 2019-10-25T08:25:08.083Z
Answers.UserDisplayName: somnolentsurfer
Body: <p>I've changed the URL of our site from beta.example.net to example.net and now CiviCRM is loading with the Drupal frontend theme instead of it's own.</p>
  
  <p>I've enforced the change by updating the line in .htaccess that's enforcing https. It now reads as</p>
  
  <pre><code>RewriteCond %{HTTPS} off
  RewriteRule ^(.*)$ https://example.net/$1 [R=301,L]
  </code></pre>
  
  <p>I've also updated the base URL in Drupal's settings.php to</p>
  
  <pre><code> $base_url = 'https://example.net';
  </code></pre>
  
  <p>and the site URL in civicrm.settings.php with</p>
  
  <pre><code>if (!defined('CIVICRM_UF_BASEURL')) {
    define( 'CIVICRM_UF_BASEURL'      , 'https://example.net/');
  }
  </code></pre>
  
  <p>I've also tried setting the CMS root in civicrm.settings.php with both</p>
  
  <pre><code>define('CIVICRM_CMSDIR', 'https://example.net/');
  </code></pre>
  
  <p>and</p>
  
  <pre><code>define('CIVICRM_CMSDIR', '/var/sites/c/example/public_html/');
  </code></pre>
  
  <p>but neither seems to make any difference.</p>
  
  <p>My best guess was that I'd broken something with Shoreditch, trying at some point in the past to define a relative URL so that CiviCRM wouldn't constantly display an error. But I've gone to <a href="https://example.net/civicrm/admin/extensions" rel="nofollow noreferrer">https://example.net/civicrm/admin/extensions</a> (I can't navigate to it through the current theme) and disabled Shoreditch and the error is still occurring.</p>
  
  <p>With Shoreditch enabled, this is how the resource URLs screen currently looks:
  <a href="https://i.sstatic.net/hZW1s.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/hZW1s.png" alt="Screenshot of Resource URLs screen"></a></p>
  
  <p>Screenshot of the current state of the extensions page:
  <a href="https://i.sstatic.net/dMcF9.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/dMcF9.png" alt="Extensions page, showing Shoreditch is enabled"></a></p>
  
  <p>And, just to confirm I cleared the cache:
  <a href="https://i.sstatic.net/4P5ln.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/4P5ln.png" alt="CiviCRM reporting cache cleared"></a></p>
  
  <p>Drupal's own backend loads as expected (though somewhat slowly). Drupal 7.67. CiviCRM 5.18.2. Shoreditch 0.1-alpha34.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-23T13:46:30.250Z
Comments.Text: Does a clear cache helps? Go in your browser to https://your-site/civicrm/clearcache?reset=1 also shoreditch has checkbox under Administer --> System settings --> resource url
Comments.UserDisplayName: Jaap Jansma - CiviCooP
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-23T15:01:46.437Z
Comments.Text: Cache clear doesn't help. No sign of the Shoreditch checkbox - I've just added a screenshot above.
Comments.UserDisplayName: somnolentsurfer
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-23T15:10:09.713Z
Comments.Text: There should be a radio button next to custom css. Are you sure shoreditch is enabled?
Comments.UserDisplayName: Jaap Jansma - CiviCooP
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-23T15:35:29.817Z
Comments.Text: Well it's definitely _reporting_ that it's enabled. Screenshot added.
Comments.UserDisplayName: somnolentsurfer
Tags: <drupal><urls><resource-urls><shoreditch>
Title: CiviCRM theme not loading after URL change
ThreadText: # CiviCRM theme not loading after URL change
  
  (Asked by: username_0 on 2019-10-23)
  
  I've changed the URL of our site from beta.example.net to example.net and now CiviCRM is loading with the Drupal frontend theme instead of it's own.
  
  I've enforced the change by updating the line in .htaccess that's enforcing https. It now reads as
  
  ```
  RewriteCond %{HTTPS} off
  RewriteRule ^(.*)$ https://example.net/$1 [R=301,L]
  
  ```
  
  I've also updated the base URL in Drupal's settings.php to
  
  ```
   $base_url = 'https://example.net';
  
  ```
  
  and the site URL in civicrm.settings.php with
  
  ```
  if (!defined('CIVICRM_UF_BASEURL')) {
    define( 'CIVICRM_UF_BASEURL'      , 'https://example.net/');
  }
  
  ```
  
  I've also tried setting the CMS root in civicrm.settings.php with both
  
  ```
  define('CIVICRM_CMSDIR', 'https://example.net/');
  
  ```
  
  and
  
  ```
  define('CIVICRM_CMSDIR', '/var/sites/c/example/public_html/');
  
  ```
  
  but neither seems to make any difference.
  
  My best guess was that I'd broken something with Shoreditch, trying at some point in the past to define a relative URL so that CiviCRM wouldn't constantly display an error. But I've gone to <https://example.net/civicrm/admin/extensions> (I can't navigate to it through the current theme) and disabled Shoreditch and the error is still occurring.
  
  With Shoreditch enabled, this is how the resource URLs screen currently looks:
  [![Screenshot of Resource URLs screen](https://i.sstatic.net/hZW1s.png)](https://i.sstatic.net/hZW1s.png)
  
  Screenshot of the current state of the extensions page:
  [![Extensions page, showing Shoreditch is enabled](https://i.sstatic.net/dMcF9.png)](https://i.sstatic.net/dMcF9.png)
  
  And, just to confirm I cleared the cache:
  [![CiviCRM reporting cache cleared](https://i.sstatic.net/4P5ln.png)](https://i.sstatic.net/4P5ln.png)
  
  Drupal's own backend loads as expected (though somewhat slowly). Drupal 7.67. CiviCRM 5.18.2. Shoreditch 0.1-alpha34.
  
  **Tags:** drupal, urls, resource-urls, shoreditch
  
  > **Comments:**
  > **username_1**: Does a clear cache helps? Go in your browser to https://your-site/civicrm/clearcache?reset=1 also shoreditch has checkbox under Administer --> System settings --> resource url  
  > **username_0**: Cache clear doesn't help. No sign of the Shoreditch checkbox - I've just added a screenshot above.  
  > **username_1**: There should be a radio button next to custom css. Are you sure shoreditch is enabled?  
  > **username_0**: Well it's definitely _reporting_ that it's enabled. Screenshot added.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-10-25. Score: 1
  
  I updated CiviCRM, and all seems fine now!
  
  
  ---
  
  