I am currently finishing up development for a drupal site for a client. I was moving the site from my development server to the client's host when I noticed a problem.

When I am on the home page, everything is fine. However, when I go to other pages, the statements to import the stylesheets which are generated by drupal are getting messed up.

For example:

When I go to http://www.lunchguide.com/taxonomy/vocabulary/1, my import statements look like this:

<style type="text/css" media="all">@import "/taxonomy/vocabulary/modules/book/book.css";</style>
<style type="text/css" media="all">@import "/taxonomy/vocabulary/modules/node/node.css";</style>
<style type="text/css" media="all">@import "/taxonomy/vocabulary/modules/system/defaults.css";</style>
<style type="text/css" media="all">@import "/taxonomy/vocabulary/modules/system/system.css";</style>

<style type="text/css" media="all">@import "/taxonomy/vocabulary/modules/user/user.css";</style>
<style type="text/css" media="all">@import "/taxonomy/vocabulary/sites/all/modules/img_assist/img_assist.css";</style>
<style type="text/css" media="all">@import "/taxonomy/vocabulary/sites/all/themes/lunchguide/style.css";</style>

Is there something I need to change in my .htaccess file?

Comments

cwgordon7’s picture

Try setting $base_path in your settings.php file to the url of your website.

---
If you have any trouble creating, configuring, or adding features to your Drupal website, I can help!
You can contact me through my personal contact form.

mediumgrade’s picture

$base_url and it worked! Thanks!