Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
Has no one experienced this before?
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.
In 4.5.0 useDomainPrefixes doesnt work properly.
When I republish website, all the links become correct:
But when I visit the page the link becomes invalid.
Does anyone knows how to solve it?
I have updated to 4.5.1, but the issue still remains...
Are you using UmbracoURLAlias at all?
yes, I am using umbracoUrlName, umbracoRedirect and umbracoUrlAlias
What do you have in these properties for that page?
umbracoUrlName: www-forsideumbracoRedirect: Content picker to http://www.smspunkt.dk/mulighederumbracoUrlAlias: empty field
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted