Answers.Body: <p>There is no easy way to do this.</p>
  
  <p>You might be able to create a drupal module that is able to get the myOrg urls and then renders the CiviCRM version of it.</p>
  
  <p>But then you still have the problem that the internal links that CiviCRM creates will be in the /civicrm/* form.</p>
  
  <p>To solve that you could first get the CiviCRM page as a string in the drupal module, then do a search/replace and output it.</p>
  
  <p>Very hackish, probably not possible to get it 100% right. I would advise not to.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-26T20:06:33.227Z
Answers.LastActivityDate: 2016-03-26T20:06:33.227Z
Answers.UserDisplayName: Catorghans
Answers.Body: <p>Thank you @Catorghans for the answer, </p>
  
  <p>I can not add a comment</p>
  
  <p>I created a Drupal Module "myorg" to render CiviCRM URLs</p>
  
  <p><code>
  function myorg_menu() {
      $items['myorg/admin/custom/group'] = array(
          'title' => 'Custom Data',
          'page callback' => 'CRM_Custom_Page_Group',
          'access arguments' => array('Customize Data and Screens'),
          'file' => 'CRM/Custom/Page/Group.php',
          'file path' => 'sites/all/modules/custom/civicrm',
      );
      return $items;
  }</p>
  
  <p></code></p>
  
  <p>when I accede to 'myorg/admin/custom/group', i have error :</p>
  
  <p><b>Fatal error</b>: Class 'CRM_Core_Page' not found in /projet/organisation/sites/all/modules/custom/civicrm/CRM/Custom/Page/Group.php on line 44</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-24T15:43:56.093Z
Answers.LastActivityDate: 2016-03-29T09:51:13.577Z
Answers.LastEditDate: 2016-03-29T09:51:13.577Z
Answers.UserDisplayName: user3058
Body: <p>How can I replace the '/civicrm/' portion of all site URLs automatically? I want change all the URLs so I cant do it one by one with a Drupal "URL alias".</p>
  
  <p>Could I somehow swap the name 'civicrm' for a different string such as 'myOrg'? (eg: if someone visited <code>/civicrm/admin?reset=1</code> they would be redirected to <code>/myOrg/admin?reset=1</code> )</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-29T10:23:10.813Z
Comments.Text: I would probably ask why this is even a requirement! It's easy to embed civi bits in custom pages, but I really don't see a problem with having civicrm in URLs.
Comments.UserDisplayName: JohnFF
Tags: <drupal><4.7><urls>
Title: Can I automatically replace the "civicrm" from all URLs with another string? (drupal7 + civicrm 4.7.4)
ThreadText: # Can I automatically replace the "civicrm" from all URLs with another string? (drupal7 + civicrm 4.7.4)
  
  (Asked by: username_0 on 2016-03-24)
  
  How can I replace the '/civicrm/' portion of all site URLs automatically? I want change all the URLs so I cant do it one by one with a Drupal "URL alias".
  
  Could I somehow swap the name 'civicrm' for a different string such as 'myOrg'? (eg: if someone visited `/civicrm/admin?reset=1` they would be redirected to `/myOrg/admin?reset=1` )
  
  **Tags:** drupal, 4.7, urls
  
  > **Comments:**
  > **username_1**: I would probably ask why this is even a requirement! It's easy to embed civi bits in custom pages, but I really don't see a problem with having civicrm in URLs.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2016-03-26. Score: 2
  
  There is no easy way to do this.
  
  You might be able to create a drupal module that is able to get the myOrg urls and then renders the CiviCRM version of it.
  
  But then you still have the problem that the internal links that CiviCRM creates will be in the /civicrm/\* form.
  
  To solve that you could first get the CiviCRM page as a string in the drupal module, then do a search/replace and output it.
  
  Very hackish, probably not possible to get it 100% right. I would advise not to.
  
  
  ---
  
  ### Answer by username_3 on 2016-03-24. Score: -1
  
  Thank you @username_2 for the answer,
  
  I can not add a comment
  
  I created a Drupal Module "myorg" to render CiviCRM URLs
  
  `function myorg_menu() {
  $items['myorg/admin/custom/group'] = array(
  'title' => 'Custom Data',
  'page callback' => 'CRM_Custom_Page_Group',
  'access arguments' => array('Customize Data and Screens'),
  'file' => 'CRM/Custom/Page/Group.php',
  'file path' => 'sites/all/modules/custom/civicrm',
  );
  return $items;
  }`
  
  when I accede to 'myorg/admin/custom/group', i have error :
  
  **Fatal error**: Class 'CRM\_Core\_Page' not found in /projet/organisation/sites/all/modules/custom/civicrm/CRM/Custom/Page/Group.php on line 44
  
  
  ---
  
  