Copied to clipboard

Flag this post as spam?

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


  • Paul Blair 466 posts 731 karma points
    Feb 23, 2009 @ 00:24
    Paul Blair
    0

    Alternative links for blog package

    Hi,

    I have added the blog package to my Umbraco site. I would now like to refer to the blog by it's subdomain (blog.sitename.com instead of sitename.com/blog.aspx)

    I have set up the hostnames and it is all working correctly. The alternative links in the properties section are:
    http://sitename.co.nz/blog.aspx
    http://blog.sitename.co.nz

    and both links work correctly.

    But when I add a link on a content page, or run my menu XSLT, it picks up the link for http://sitename.co.nz/blog.aspx.

    Is there a way of this defaulting to http://blog.sitename.co.nz instead?

    If there is no way of getting this working then I could add a redirect. the code I have is:

    redirectMode="Permanent"
    redirect="Domain"
    rewriteUrlParameter="ExcludeFromClientQueryString"
    virtualUrl="http://sitename.co.nz/blog.aspx"
    destinationUrl="http://blog.sitename.co.nz"
    ignoreCase="true" />

    But this isn't working either.

    Any ideas?

    Thanks
    Paul

  • Scott Hugh Alexandar Petersen 349 posts 164 karma points
    Apr 30, 2009 @ 15:12
    Scott Hugh Alexandar Petersen
    0

    It's because you have to do like this:


    redirect="Domain"
    redirectMode="Permanent"
    rewrite="Domain"
    virtualUrl="http://sitename.co.nz/blog.aspx"
    destinationUrl="http://blog.sitename.co.nz/"
    ignoreCase="true" />

    Greetings

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies