Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6683553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:50:06+00:00 2026-05-26T04:50:06+00:00

I have created a site with multiple languages in sitecore… I the content editor

  • 0

I have created a site with multiple languages in sitecore… I the content editor (system > languages) I have specified three languages (Dutch, English and German). No I have 2 problems.

When an item has, for example: an English version but no German and Dutch version and I type the address to the German site: http://www.testsite.com/de I get the German site, but without content. In this case I want a 404 page to be shown.

Another problem is when I go to language that is not specified in system > language and also on the item is still get an empty site. In this case I also want a 404 page to be shown. Sitecore shows the page as long as it is a valid ISO-code.

I’m using Sitecore 6.4

Does anybody has a solution for these problem(s)?

Thanks in advance!

mrtentje

My LinkManager is specified as follows in the Web.config:

<add name="sitecore" type="Sitecore.Links.LinkProvider, Sitecore.Kernel" addAspxExtension="true" alwaysIncludeServerUrl="false" encodeNames="true" languageEmbedding="asNeeded" languageLocation="filePath" shortenUrls="true" useDisplayName="false"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:50:07+00:00Added an answer on May 26, 2026 at 4:50 am

    Unfortunately you have to manage both of these scenarios manually in Sitecore, they both have quite simple solutions but will require some development on your part.

    For the first (accessing of pages without translations) I think you would need to extend the current ItemResolver within Sitecore and have it explicitly check that a version exists for the language that has been selected. I haven’t implemented that myself but that’s how I’d look at handling it.

    The second (only accepting certain languages) is something I have handled, and it really bothered me that Sitecore couldn’t handle it itself (though perhaps it does and I missed it). For this I created a step in the pipeline immediately after the LanguageResolver called PermissableLanguageChecker. This checks to see if the current language of the request is one of certain allowable values, and if it isn’t it sets the language back to the default language, or in your case throw a 404.

    For the “allowable values”, I read them from the site config with a new property there:

    <site name="website" ... permissableLanguages="pl-PL,en" language="pl-PL" ... />
    

    That permissableLanguages property is handy as we can also use it later on in the site when presenting a language selection control to the user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well as I have posted earlier too...I have created a site in two languages.One
I have created multiple profiles in my Drupal site. Currently Drupal allows us to
I have created a site collection inside a web application with user A as
I have created a site where people can create a profile. But I am
I have created a basic site using ASP.NET routing according to Mike Ormond's example
I'm running MOSS 2007 and have created a new site under an existing one
I have created a Dynamic Data site against an Entity Framework Model I have
I have created a page on my site where users can post directly to
I have created a sitemap for my site and it complies with the protocol
I have created a feature, a publishing site, in Visual Studio to MOSS -

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.