Media Item from single Top Level Domain on Umbraco multisite
I have Umbraco 7 running a multi language site which looks like this:
Rootnode
NL
DE
EN
FR
All language nodes have a Top Level Domain attributed to them. So the NL one can be accessed from www.sitename.nl, DE is www.sitename.de etc...
Media files are on an azure blob storage and are shared by all language nodes.
This is all working well, but then I run into trouble with duplicate media items.
My client wants all media served up from a single TLD for SEO purposes, but I can't get Umbraco to do that.
The media paths in Umbraco are relative though, so media-item-1 is accessible from www.sitename.nl/media/media-item-1 as well as www.sitename.de/media/media-item-1.
How can I get media-item-1 to only be accessible through the .nl TLD?
Any help would be greatly appriciated, I've been banging my head against this for a week now :-(
Media Item from single Top Level Domain on Umbraco multisite
I have Umbraco 7 running a multi language site which looks like this:
Rootnode
All language nodes have a Top Level Domain attributed to them. So the NL one can be accessed from www.sitename.nl, DE is www.sitename.de etc... Media files are on an azure blob storage and are shared by all language nodes.
This is all working well, but then I run into trouble with duplicate media items.
My client wants all media served up from a single TLD for SEO purposes, but I can't get Umbraco to do that.
The media paths in Umbraco are relative though, so media-item-1 is accessible from www.sitename.nl/media/media-item-1 as well as www.sitename.de/media/media-item-1.
How can I get media-item-1 to only be accessible through the .nl TLD?
Any help would be greatly appriciated, I've been banging my head against this for a week now :-(
Hi Kazeko,
How about adding a rewrite for all media that forces the .nl TLD?
E.g., something like this:
(Start with
Found
instead ofPermanent
for easier testing - when you're sure it works, change it back...)Hope that helps,
/Chriztian
Another option would be to always add the hostname when rendering media items, so instead of something like this:
You'd prepend the hostname:
- might actually be the easiest solution :)
/Chriztian
is working on a reply...