0

I was recently hired to manage an existing Drupal 7 site (built with an Omega subtheme) and am doing my best to ramp up quickly. Unfortunately, I do have some fires to put out immediately and could really use some help. The website has redirects coming in from another hosting provider/domain manager. For example, www.oldsite.com is being redirected to www.currentdrupalsite.com (currentdrupalsite.com being the site that I am managing) from a different host than the one that the current Drupal site is being hosted on. This redirect is breaking my image links, specifically the logo.

So, the img src path is http://oldsite.com/sites/all/themes/themename/logo.png instead of http://currentdrupalsite.com/sites/all/themes/themename/logo.png.

Can I fix this through the Drupal interface?

  • what is the url of broken image? It the file there in location? – AgA Sep 26 '13 at 8:28
0

A redirect from the old site to the new should not affect how the page is rendered on the new unless some absolute paths are hardcoded in the template files.

First check the value of $base_url in the settings.php. If that is correct (or just commented out) check the code of your theme's template files.

  • Thank you! I appreciate the feedback. I checked settings.php and the base URL is commented out. Is there anything specific I am looking for in the theme's template files? Inside the templates folder are several sub-folders with templates. I can look through all of them if I know what I'm looking for. Would it be a base url as well? – user21292 Sep 26 '13 at 9:50
  • It really depends on your theme's structure. Check to see whether the logo URL is hardcoded in a tempate file. You might find it in page.tpl.php. Also check your theme's settings/options in Appearance > Settings > Your theme. – gkom Sep 28 '13 at 14:54
  • Ok, I'll see what I can find in the theme's files. I checked the theme's settings under Appearance in the Drupal interface. It's set to 'use the default logo.' The image link path in Firebug is now showing an IP address. So, it looks like: "<img alt="Southland Industries" src="127.0.0.1/sites/all/themes/southland2013/logo.png">" It tends to put in different paths, then correct itself, then break again. Thank you again for your help! – user21292 Sep 29 '13 at 0:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.