Answers.Body: <p>Consider picking either <code>www.site.com</code> or <code>site.com</code> as the canonical domain. Then:</p>
  
  <ul>
  <li>Setup an httpd redirect (in Apache or nginx) from one domain to the other domain.</li>
  <li>Ensure that the configuration files (e.g. both of Joomla's <code>civicrm.settings.php</code> files) and "Resource URLs" consistently point to the same domain.</li>
  </ul>
  
  <p>(Alternatively, you could dig further into how the URL settings work, but <em>usually</em>, when you consider SEO and marketing consistency, it's higher-value to use the same domain consistently.)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-03T20:58:32.810Z
Answers.Text: Tim is spot on. I always add a redirect to my sites to redirect to https://www.site.com (unless we are specifically using a certain subdomain). This issue also occurs when dealing with http vs https, so you can kill multiple birds with one redirect rule.
Answers.UserDisplayName: Randy Tobias
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-09T18:48:34.133Z
Answers.Text: FWIW ... if you use Akeeba's Admin Tools Pro (well worth the cost), the .htaccess, NginX Configuration and web.config Maker module can create the proper settings to do this without much fuss.
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-03T16:53:18.013Z
Answers.LastActivityDate: 2017-10-03T16:53:18.013Z
Answers.UserDisplayName: Tim Otten
Body: <p>I've got a client with a bizarre Joomla/CiviCRM issue.</p>
  
  <p>When the client is logged in at <a href="http://www.site.com" rel="nofollow noreferrer">http://www.site.com</a>, when they perform certain CiviCRM actions, they are redirected to <a href="http://site.com" rel="nofollow noreferrer">http://site.com</a>, which they are not logged in at. However, when they log in a second time at <a href="http://site.com" rel="nofollow noreferrer">http://site.com</a> they are able to function normally. However, if they log out at <a href="http://site.com" rel="nofollow noreferrer">http://site.com</a>, they are still logged in at <a href="http://www.site.com" rel="nofollow noreferrer">http://www.site.com</a></p>
  
  <p>Confused? The kicker is that I updated the CiviCRM baseurl to be <a href="http://www.site.com" rel="nofollow noreferrer">http://www.site.com</a>. But even clearing caches hasn't helped that bleed through.</p>
  
  <p>What is happening here?</p>
  
  <ol>
  <li>Is the <a href="http://www" rel="nofollow noreferrer">http://www</a> vs http:// login distinction a Joomla! only one?</li>
  <li>Is there anything else I need to do to clear CiviCRM's caches regarding stored <a href="http://site.com" rel="nofollow noreferrer">http://site.com</a> addresses?</li>
  <li>I deleted civicrm_cache session entries, but they seemingly aren't being regenerated. Any ideas why?</li>
  </ol>
  
Tags: <joomla>
Title: Joomla! log in error on http vs http://www
ThreadText: # Joomla! log in error on http vs http://www
  
  (Asked by: username_0 on 2017-10-02)
  
  I've got a client with a bizarre Joomla/CiviCRM issue.
  
  When the client is logged in at <http://www.site.com>, when they perform certain CiviCRM actions, they are redirected to <http://site.com>, which they are not logged in at. However, when they log in a second time at <http://site.com> they are able to function normally. However, if they log out at <http://site.com>, they are still logged in at <http://www.site.com>
  
  Confused? The kicker is that I updated the CiviCRM baseurl to be <http://www.site.com>. But even clearing caches hasn't helped that bleed through.
  
  What is happening here?
  
  1. Is the <http://www> vs http:// login distinction a Joomla! only one?
  2. Is there anything else I need to do to clear CiviCRM's caches regarding stored <http://site.com> addresses?
  3. I deleted civicrm\_cache session entries, but they seemingly aren't being regenerated. Any ideas why?
  
  **Tags:** joomla
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-10-03. Score: 1
  
  Consider picking either `www.site.com` or `site.com` as the canonical domain. Then:
  
  * Setup an httpd redirect (in Apache or nginx) from one domain to the other domain.
  * Ensure that the configuration files (e.g. both of Joomla's `civicrm.settings.php` files) and "Resource URLs" consistently point to the same domain.
  
  (Alternatively, you could dig further into how the URL settings work, but *usually*, when you consider SEO and marketing consistency, it's higher-value to use the same domain consistently.)
  
  > **Comments:**
  > **username_2**: Tim is spot on. I always add a redirect to my sites to redirect to https://www.site.com (unless we are specifically using a certain subdomain). This issue also occurs when dealing with http vs https, so you can kill multiple birds with one redirect rule.  
  > **username_3**: FWIW ... if you use Akeeba's Admin Tools Pro (well worth the cost), the .htaccess, NginX Configuration and web.config Maker module can create the proper settings to do this without much fuss.  
  
  ---
  
  