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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Access denied without www.sitename
Pages: [1]

Author Topic: Access denied without www.sitename  (Read 744 times)

hwdornbush

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
Access denied without www.sitename
September 27, 2010, 10:50:54 am
I have been having trouble with inconsistent access to some CiviCRM admin functions.  I am using user/1 account, and I verified that it is assigned to the administrators role, which has all CiviCRM privileges. 

For example, I go to Manage Groups and see the list of all groups.  If I click on the Members link for a group, I get "Access denied."  I noticed that I was starting from http://www.sitename... and the Members link was http://sitename... without the www.  If I just added www. to the link in the broswer address bar, it worked fine.

What causes CiviCRM to treat www.sitename...  different from sitename...?  How should I configure it so that either with or without www works, or alternately should something else be done to keep the access paths consistent?

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Access denied without www.sitename
September 27, 2010, 10:38:16 pm
hwdornbush,

Just check your sites/default/civicrm.settings.php file, and verify the value of :
 
define( 'CIVICRM_UF_BASEURL'      , 'http://www.yoursitename.com' );  
look for  www. Do the needed changes if any. Make sure you changes are saved , coz most of times setting file is write protected. :)

HTH.

Rahul.
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Access denied without www.sitename
September 28, 2010, 03:16:15 am
You want to set your site up so that people always get directed to with www or without whichever URL go to - otherwise you will have ongoing problems. Do a (google) search on Apache redirect & htaccess to get details on how
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

hwdornbush

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
Re: Access denied without www.sitename
October 01, 2010, 09:05:30 am
Thanks for the replies.  As it turns out, the needed statements are in the Drupal supplied .htaccess file and all I have to do is uncomment the appropriate ones.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Access denied without www.sitename

This forum was archived on 2017-11-26.