I have a working site at http://sitename.primarydomain.com and I'm trying to establish domains that all point to the same site and work identically. I created the new domains and have them directed to the same directory as the working site, and everything functions properly EXCEPT no theme/css/image information works! Site loads, links are all fine, data is there - no css, no theme, UGLY text-only site (except images provided by third-party, external links and scripts, ie Google ads, embedded media etc).

The only difference is the url I use to access the site. "http://www.addondomain.com", ".org", & ".net" are all registered properly and pointed to the "public_html/sitename" folder. I get the same problem when accessing the site directly from "http://www.primarydomain.com/sitename" - no themes, no css, no images.

My file system is set to private - secure folder at "home/username/securefiles" with relative path set to "../../securefiles" in my Drupal install - and everything works perfectly at "http://sitename.primarydomain.com" - but no other domains can access the themes or images.

ANY ideas???

Drupal 6.14

HOST: Hostmonster (Bluehost)

MySql 5.0.81
PHP 5.2.11
Apache 2.2.1.4

Comments

groenm’s picture

I wonder why you are pointing all domains to the same directory? If you want the same content to be available for all these domains, it is much more common to set up redirects pointing from your secondaire domains to your primary domain. The method you are describing now will result in a penalty in search engines.

For a direct answer to your question, I am afraid I don't have a clue what is wrong.

Mark

DJWankle’s picture

I have my installation working in a test folder - and rather than rebuild the site in a new folder I wanted to point my primary domain at this folder, then redirect the others to that domain. But if the primary domain I want to use doesn't work with the themes, then I'll have to rebuild the site form scratch in a new folder dedicated to that domain and then redirect the other domains to it.
I'm just trying to avoid having to rebuild everything - and I'd also like to know why I'm having this problem.

groenm’s picture

I am sure there must be some way to fix your theme problem, but I don't know where I should direct you.

However, rebuilding the site should certainly not be necessary. You can make a copy of your site: copy your domain directory in the sites directory, dump your database and import it into a new database, change the settings.php file in your new domain directory, and you should now have a copy of your site on the production domain. In addition to still have a test site running where you can screw things up without affecting your production site.

DJWankle’s picture

I'm dumb. I had .htaccess preventing hotlinking - and forgot to add the new domains to it.
That'll do it!

Everything works now as it should.

THANKS!

groenm’s picture

Glad you found. I remember myself doing this kind of things. Making some kind of setting, never looking back and then after some time, something doesn't work and you have no idea what's wrong.

Good luck,
Mark