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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Drupal codebase in subdirectory--Most CiviCRM pages not found
Pages: [1]

Author Topic: Drupal codebase in subdirectory--Most CiviCRM pages not found  (Read 1158 times)

foxmarks

  • Guest
Drupal codebase in subdirectory--Most CiviCRM pages not found
September 09, 2009, 02:22:17 pm
I run several sites from one Drupal codebase on GoDaddy shared hosting. The CiviCRM installer ran successfully. I can see the CiviCRM dashboard page in my drupal site, but most other Civi pages return "page not found". Civi is linking to URLs with additional subdirectories which I bypassed via symlinks (to make my multi-drupal work better).

Server path: ~/html/subdir1/drupalcodebase/sites/mysite/

Symlink points http://mysite.com to ~/drupalcodebase/ so it works like an ordinary "html/drupal" install.

http://mysite.com/civicrm/dashboard displays the correct dashboard. When I hover on the Administer link (for example) on the dashboard, Drupal wants to take me to http://mysite.com/subdir1/drupalcodecodebase/civicrm/admin?reset=1

By my symlink arrangement, there is no such file in those nested subdirs, so "page not found". It seems I need to tell CiviCRM to ignore the /subdir1/drupalcodebase when it tells drupal which URL to request. When I manually enter the URL with those dirs deleted, I get to the Admin page. But I can't do anything, because all the links there look for the longer URL.

I have set the base URL in settings.civicrm.php to be http://mysite.com/

Deleting the subdir1/drupalcodebase portion of the server path in $civicrm_root leads to the Civi warning for incorrect path.

I thought of trying an .htaccess redirect to the shorter URL, but I'm not smart enough for that. Is there a setting in CiviCRM that will align with my subdirectory-nested drupal install?

Thank you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Drupal codebase in subdirectory--Most CiviCRM pages not found

This forum was archived on 2017-11-26.