Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Remove the language prefix from url ex. (/sv)

Vote:
 

Hello

 

At first we had globalization enabled on our site, with english and swedish enabled, but we only used the swedish branch, so we disabled the globalization and disabled the english language branch.

 

The problem is that now we have two urls to each page, for example: "www.test.se" and "www.test.se/sv"

 

So my question is, how do I remove the "/sv" from the urls.

 

Thanks in advance

/Fred

#38485
Apr 12, 2010 13:31
Vote:
 

Set the defaut language in episerver.config.

Like so:

<site description="YourSite">
    <siteHosts>
         <add name="www.test.se" language="sv" />
         <add name="www.test.com" language="en" />
         <add name="*" />
    </siteHosts>

#38492
Apr 12, 2010 15:47
Vote:
 

Hi

It doesnt make any difference,

I checked in admin mode under "Manage Web Site Languages" and swedish is enabled, I tried to disable it but then I got "If you have globalization support enabled you always need at least one enabled language". But I dont have globalization support enabled.

#38504
Apr 13, 2010 10:42
* 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.