We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21122
    • 153 Posts
    Ok,

    I’ve just put a new site live. It features a Flash banner which is pulling in some images via XML.

    I’ve set the host headers on my server to ’www.mydomain.co.uk’, and also my ’mydomain.co.uk’. The site loads using both of these URLs, but my Flash banner only works with one of them (whichever one its picking up as the site_url).

    At the top of my template, I have <base href="[(site_url)]"> and this makes all the links start with www.mydomain.co.uk. But when I access the site via mydomain.co.uk, it still sends the links to www.mydomain.co.uk, whereas I’d like it to go to just mydomain.co.uk.

    Why is it doing this? Does anybody know how to fix this?

    Thanks
      • 21122
      • 153 Posts
      Ok, this should probably get moved to the IIS area of the forum.

      After getting in touch with Aaron at onesmarthost.co.uk, he advised me that I should add a rule in my rewriting module (ISAPI) to rewrite the mydomain.co.uk into www.mydomain.co.uk. This worked perfectly for me, and I no longer have a problem.

      This technique isn’t working right now for mydomain.co.uk/services.html, but Aaron is working on a solution. If he finds it and I can get hold of it, I’ll put it up on the forums for all to see.

      If anyone needs specialist MODx hosting, I can’t recommend Aaron enough. He’s been extremely helpful with everything I’ve asked.