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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • .css lost when base path altered in .htaccess for shared SSL
Pages: [1]

Author Topic: .css lost when base path altered in .htaccess for shared SSL  (Read 3626 times)

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
.css lost when base path altered in .htaccess for shared SSL
July 11, 2009, 08:54:19 pm
Testing a nonprofit's donation page (AuthorizeNet) in a Drupal 6.x site with civiContribute 2.2.6, I altered Drupal's .htaccess rewrite rules so that the page can use the Web host's SSL. The change was

RewriteBase /~primaryusername/nonprofittestsite (in the area of .htaccess near the end that deals with virtual document roots)

The page now loads (haven't tested it yet) at https://secure.bluehost.com/~primaryusername/nonprofittestsite/civicrm/contribute/transact?reset=n&id=n and I can see the certificate. However, this rewrite has caused the page to lose its path to the .css. It loads in an unstyled format.

I noticed this issue: http://issues.civicrm.org/jira/browse/CRM-4314 about a recent change to drupal/civicrm.module that makes the module more consistent with Drupal's way of aggregating files like .css.

I'm wondering if there is a hack I can apply to this area to help the /transact page find its way to the .css again ...? Or maybe someone has found another way to solve this problem in a virtual server environment using shared SSL?

(By the way, I see the source code of /transact is also referring to many .js files ... and I'm wondering if testing will show they, too, are now lost.) :-\ :-\

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: .css lost when base path altered in .htaccess for shared SSL
July 12, 2009, 07:40:48 am

in general posting twice on different forums is not recommended. Weekends are typically slower and if you dont get a response it most likely means some of us reading it dont have a clue  as to what / why the issue is

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • .css lost when base path altered in .htaccess for shared SSL

This forum was archived on 2017-11-26.