Try our conversational search powered by Generative AI!

Url works across all domains

Vote:
 

 We have multiple domains for each language e.g.

1. www.abc.de<http://www.abc.de>

2. www.abc.com<http://www.abc.com>

Say I have an article for dog in both english and german with urls

1. www.abc.com/dog<http://www.abc.com/dog>

2. www.abc.de/hund<http://www.abc.de/hund>

The issue that I have is that the following also works

3. www.abc.com/hund<http://www.abc.com/hund>

4. www.abc.de/dog<http://www.abc.de/dog>

We require www.abc.com/hund to redirect to www.abc.com/dog.

This can possibly be achieved by writing a custom url rewriter. The question is if that is recommended. I mean for every URL that gets hit, we would need to check if URL is correct for that domain. And that would mean loading the Page object before in the cycle while rewriting and also when finally URL reaches page handler.

#63358
Nov 15, 2012 20:43
Vote:
 

I sugest contacting episerver support and talk to them cause it sounds like it might be a bug. Test if you have the same on a standar demowebsite from episerver. If it is by design you might be able to use the 404handler on epicode or write custom module that.

Make sure you have the correct language mapped i EPiServerFramework.config as well or look in admin-mode to see mapped languanges to domains

#64155
Dec 11, 2012 15:49
Vote:
 

I think that there is a hotfix created where you can configure strict language handling which means that the last URL segment must match the language of the domain. Thus these links would give 404 reponses:

www.abc.de/dog
www.abc.com/hund

while the following URL:s would work as normal

www.abc.de/hund
www.abc.com/dog

#64175
Dec 12, 2012 9:14
Vote:
 

@Linus, do you have any specifics regarding this hotfix?

According to another post, this issue is in the works for EPi 7, but I am running EPi 6 and am very much interested in a hotfix or workaround for that version.

#65948
Feb 15, 2013 14:32
Vote:
 

@David

Please send a hotfix request to developer support (requires partner access) .

#66056
Edited, Feb 19, 2013 8:20
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.