Copied to clipboard

Flag this post as spam?

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


  • Daniel Draper 36 posts 57 karma points
    Apr 28, 2010 @ 08:42
    Daniel Draper
    0

    Umbraco 4.0.3 Hostnames not working correctly

    I seem to be having a problem with hostnames lately. In IIS I have 2 domains: example.com and www.example.com. In umbraco I have set the hostname to www.example.com as this is the only domain I want to use on my website for SEO purposes.

    I also set the useDomainPrefix property to true and I am using directory urls.

    Link To Document is simply /document-name which is wrong it should be www.example.com/document-name. The alternative link is correct www.example.com/document-name.

    The second problem is the root node has the correct Link To Document and Alt Link both = www.example.com but you can access the site using example.com.

    Some assistance would be great thanks.

    Cheers, Daniel

  • Daniel Draper 36 posts 57 karma points
    Apr 29, 2010 @ 13:43
    Daniel Draper
    0

    Has no one experienced this before?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Apr 29, 2010 @ 14:04
    Douglas Robar
    0

    What you really want to do is make two sites in IIS. One for www.example.com that goes to your umbraco site. The umbraco site won't even need to have any hostname assigned to it since it will ONLY respond to those requests that IIS sends to it. And IIS will ONLY send requests from www.example.com to it.

    That simplifies things a lot.

    The second step is to create another site in IIS that is a 'Redirect to www.example.com' site. This site will have as many domains/bindings as you want (such as example.com) and will redirect to the www.example.com site. This is a built-in feature in IIS and is extremely powerful. It'll help your SEO to have only one domain that truly responds to your requests, and it'll make managing that process extremely easy.

    Hope that helps.

    cheers,
    doug.

  • Julius Bartkus 51 posts 76 karma points
    Jul 20, 2010 @ 12:35
    Julius Bartkus
    0

    In 4.5.0 useDomainPrefixes doesnt work properly.

    When I republish website, all the links become correct: 

    Link to document
    Alternative Links

     

    But when I visit the page the link becomes invalid.

    Link to document
    Alternative Links

     

    Does anyone knows how to solve it?

     

     

  • Julius Bartkus 51 posts 76 karma points
    Jul 27, 2010 @ 21:19
    Julius Bartkus
    0

    I have updated to 4.5.1, but the issue still remains...

  • Tom Maton 387 posts 660 karma points
    Jul 27, 2010 @ 22:01
    Tom Maton
    0

    Are you using UmbracoURLAlias at all?

  • Julius Bartkus 51 posts 76 karma points
    Jul 27, 2010 @ 23:06
    Julius Bartkus
    0

    yes, I am using umbracoUrlName, umbracoRedirect and umbracoUrlAlias

  • Tom Maton 387 posts 660 karma points
    Jul 28, 2010 @ 09:18
    Tom Maton
    0

    What do you have in these properties for that page?

    Tom

  • Julius Bartkus 51 posts 76 karma points
    Jul 28, 2010 @ 20:42
    Julius Bartkus
    0

    umbracoUrlName: www-forside
    umbracoRedirect: Content picker to http://www.smspunkt.dk/muligheder
    umbracoUrlAlias: empty field

     

Please Sign in or register to post replies

Write your reply to:

Draft