Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James Rand 3 posts 23 karma points
    Jan 12, 2011 @ 16:30
    James Rand
    0

    Umbraco on temp url address

    Hi,

         I hope someone can help.  We had installed Umbraco on the Rackspace cloud that worked except for the fact that changes made didn't show up for everyone, rather only on the server instance that they were made on - a rebuild fixes this but it's not ideal for clients!

    As such we're moving back to our old hosts - in testing it all worked fine as we put the site on a spare domain we had - let's call it  www.testdomain.com.

    So far no problems.  As it is a new site for a company who don't want their existing site down before this goes up, (and we didn't build and don't control their old site) so can't build/upload in/to a secure subfolder, we set up a domain reference which looks something like this - http://79.170.40.241/domain.com/ .

    When we view the site on this it doesn't render correctly but does seem to connect to the db.  It would appear that it is looking in the wrong place for all the files be they images, css or whatever.

    From what we can deduce when it looks for the css files on the testdomain.com address it looks here:

    www.testdomain.com/css/styles.css

    and that works.  However, on the temp address it looks here:

    http://79.170.40.241/css/styles.css

    rather than here:

    http://79.170.40.241/domain.com/css/styles.css

    Any ideas how to get it to look in the correct place!?

    (ps. this is on shared hosting)

    Thanks in advance.

  • Tom Smith 98 posts 172 karma points
    Jan 12, 2011 @ 18:24
    Tom Smith
    0

    Hi James, 

    Not really sure about your set up there, but it sounds like you might be trying to install umbraco in a virtual directory which won't work unfortunately (http://our.umbraco.org/forum/getting-started/installing-umbraco/3121-Installing-Umbraco-4-on-a-virtual-directory)

    If I've misunderstood that then;

    Is it spitting content out? If so then the app settings in the web.config are most likely correct, (the umbraco core paths are correct for the new domain). If not, then you could try tweaking these.

    What does your stylesheet link look like? Might be something to do with absolute / relative URL's? 

    Alternatively - I'm not sure what the limitations of your rackspace package are so this might not be possible - but you could try a slightly different approach. Do you have access to the DNS records for the domain and / or IIS on the webserver? If so, I would advise setting up the new site in IIS, then either using the DNS host or IIS bindings or both to link the new site to something like new.domain.com?

    Tom

     

     

  • James Rand 3 posts 23 karma points
    Jan 12, 2011 @ 18:48
    James Rand
    0

    Thanks for the reply Tom.

    It is installed in the root of the website - hence it works when you go to the domain direct but not on the temp address which includes an ip.

    http://www.spankmypigproductions.com/why-delamere.aspx

    http://79.170.40.241/spankmypigproductions.com/why-delamere.aspx

    They are both the same file just one is the temp address.  Obviously for the site in question we can't actually build on their domain as we don't control it yet! (please excuse the spare domain we've used demonstarte this!)

    I think your right with regards relative/absolute urls but can't figure out where to change what!  It is finding the db as all the content is coming out, what we're not getting is the media and the css (no doubt a couple of other things too but we've not found out yet).

    Thanks in advance.

  • Tom Smith 98 posts 172 karma points
    Jan 17, 2011 @ 12:15
    Tom Smith
    0

    Hi James,

    Sorry for the delayed reply; have been away from my desk for a few days; did you manage to sort your issue?

    Yes, given the above, I think you're absolutely right - your problem is coming from the url in the stylesheet link (you may also want to check any urls in the stylesheet itself, and any img src's you may have)

    It seems like it's looking for the stylesheet one folder further back up the tree than it should. You will need to use a relative URL to correct this. 

    If you are working in http://ipaddress/siteroot then the stylesheet link should look somthing like <link rel="stylesheet" href="./css/styles.css" type="text/css" />

    ./css/styles.css relative to a site root of http://ipaddress/siteroot equals full URL of http://ipaddress/siteroot/css/styles.css which is what you're after.

    This guide may also help if you get stuck http://www.webreference.com/html/tutorial2/3.html

    Many Thanks,

    Tom

  • James Rand 3 posts 23 karma points
    Jan 20, 2011 @ 13:29
    James Rand
    0

    Tom

    Thanks for this i have managed to get this working now

    again thanks

    James

Please Sign in or register to post replies

Write your reply to:

Draft