Cursom routing in a multilingual site with only one url segment

Vote:
 

I have a multilingual Episerver site with two languages.
This forces the site to route like "site/en/..." now I want to add custom error handling with a 404 and a 500 page who are simple content pages inside of the cms.
However if I try to route to "site/404" it won’t show the page because Episerver expects "site/en/404". I don't want that but I can’t figure out how to bypass this.

I'm not sure if this is part of the problem but these are the scenario's I walked in to:

  • "site": I get the homepage
  • "site/en/existing page": I get the right page
  • "site/whatever": I get a blank page
  • "site/en/whatever" I get the default asp 404 page
  • "site/whatever/whatever" I get the default asp 404 page

I have googled a lot but I can't seem to find a solution to this problem.
I hope you can help me.

With kind regards,
Marvin Brouwer.

 

#113616
Nov 25, 2014 16:32
* 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.