default userpic

Subdomains and CSS

Vote 0 Votes

It seems quite easy to create a subdomain by using the form to create a new blog and get:

subdomain.mainsite.tld

However, the CSS does not seem to be accessed and you get a non-styled page.

Is there a simple way round this - or have I just done something wrong?

Many thanks.

Reported on Movable Type 4.2

7 Replies

| Add a Reply
  • Do you have a link, we can then see where it is trying to load the css from.

  • Ah, same issue I had a long time ago. The problem here is the url for the css style sheet. You have to go into the templates and make sure the link to the CSS file is correct. Sometimes it is linked as http://domain.com/file as opposed to http://sub.domain.com/file

  • OK. Let's try that again without the angle backets and see if some of it comes out.

    Link:

    http://atomboy.massmediamagazine.com

    The root /styles.css (written by MT) has this:

    @import url(http://atomboy.massmediamagazine.com/mt-static/themes-base/blog.css); @import url(http://atomboy.massmediamagazine.com/mt-static/themes/tristan-blue-4.2/screen.css);

    The main page for atomboy.etc. is styled and the page source gives this:

    link rel="stylesheet" href=http://massmediamagazine.com/mt-static/themes/tristan-blue-4.2/screen.css type="text/css"

    Followed links from main page are non-styled and give this (see above):

    link rel="stylesheet" href="http://atomboy.massmediamagazine.com/styles.css" type="text/css"

    The MT control panel link to styles.css for atomboy.massmediamagazine.com gives:

    /* This is the StyleCatcher theme addition. Do not remove this block. / @import url(/mt-static/themes/tristan-blue-4.2/screen.css); / end StyleCatcher imports */

    BUT this is after what looks like a download dialogue box opens up and disappears in a split second. The source of the page just has:

    !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" HTML HEAD META http-equiv=Content-Type content="text/html; charset=windows-1252" /HEAD BODY /BODY /HTML

    I hope this gives you something to go on and makes sense.

    The reason for wanting to do this is to have directories for some things and subdomains for others.

    Thank you once again for your help.

  • Hang on!

    I am going to have a look at what else is interfering with this.

    I may have to delete the above sobdomain.

    Thanks.

  • Hey, Atomboy - did you ever get a resolution to your problem? I'mt trying to do the same thing and getting the same result. I've deleted and recreated the subdomain multiple times, and tried multiple combinations of locations for the css files, and am still getting an unformatted page. How did you address this?

    http://hd-radio.xzebit.com

    Thanks, Don

  • Hey,

    I think I'm having the same problem. I have MANY domains, and I was hoping that MT would be the solution to my problem.

    When I did the install, I installed to: domain1.com/new/

    When I attempt to add a blog domain2.com/new/

    It gives me an unformatted page also. I have the directory mapping correct.

  • Actually, I'm not sure I can delete my comment, but I found the solution:

    http://www.sixapart.com/movabletype/kb/installation/imagesstylesa.html

    Hope this helps.

    Cheers

Add a Reply

Forum Groups

108 360

Last Topic: Sub-Blog by qubix on Nov 12, 2008

151 407

Last Topic: MT Interface Missing by Sherri on Nov 10, 2008

37 147

Last Topic: registration email not showing up by eraserhead on Nov 12, 2008

34 93

Last Topic: Creating your own Plug-in by jondauz on Nov 5, 2008

10 33

Last Topic: new licensing confusion by Neil Epstein on Aug 14, 2008

10 40

Last Topic: dynamically load a different template set by Mixhael on Nov 12, 2008

code.sixapart.com

62 226

Last Topic: Callback after blog publishing. by Tomato Interactive on Oct 27, 2008

35 100

Last Topic: List entries current month by Tomato Interactive on Nov 11, 2008