Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Eric
Jun 22, 2011
  3890
(0 votes)

Use .se and .com adresses without an enterprise license, EPiServerFramework.config to the rescue.

Yesterday I came across some features in EPiServer that i had not noticed before. We had a discussionen if we should use an enterprise solution or a site with globalization enabled.

In EPiServer CMS 6 we thougt it would be nice to use the new features for globalization like access rights for languages. But how could we solve the issue of having the same adress for all our languages but with the /sv or /en at the end for diffrent languages.

Have a look at www.episerver.com and www.episerver.se and you will se what I do not like to have Ler In my case I would like to have www.episerver.com and www.episerver.se without a redirect to www.episerver.com/sv for the swedish content. I also would like to have the same structure and no enterprise license.

The solution is to start use the EPiServerFramework.config file. First we need to setup the IIS. Add you diffrent site bindings for the site in my case i use test.se and test.com for a standard Alloysite.

image

 

When you are done with that you have to change your host-file, if you are working locally of course..

Next you change the episerver.config to respond on test.com in the siteUrl. Finally we need to do the magic in EPiServerFramework.config.

The changes that you will need to do look like this:

<siteHostMapping>
  <siteHosts siteId="Alloy">
    <add name="*" />
    <add name="test.com" />
    <add name="test.se" language="sv" />
  </siteHosts>
</siteHostMapping>
That’s all we need to do. Now we can go to test.se and see the swedish content and test.com for the english content without an enterprise enabled EPiServer CMS website.

image

image

 

If this solution is ok or not regarding licenses is something for someone else to answer Ler

 

Update: The configuration made in the EPiServerFramework.config is able to do in Admin mode > config > [click the siteID]. Thank you David Knipe Ler

Jun 22, 2011

Comments

Please login to comment.
Latest blogs
Optimizely Configured Commerce and Spire CMS - Figuring out Handlers

I recently entered the world of Optimizely Configured Commerce and Spire CMS. Intriguing, interesting and challenging at the same time, especially...

Ritu Madan | Mar 12, 2025

Another console app for calling the Optimizely CMS REST API

Introducing a Spectre.Console.Cli app for exploring an Optimizely SaaS CMS instance and to source code control definitions.

Johan Kronberg | Mar 11, 2025 |

Extending UrlResolver to Generate Lowercase Links in Optimizely CMS 12

When working with Optimizely CMS 12, URL consistency is crucial for SEO and usability. By default, Optimizely does not enforce lowercase URLs, whic...

Santiago Morla | Mar 7, 2025 |

Optimizing Experiences with Optimizely: Custom Audience Criteria for Mobile Visitors

In today’s mobile-first world, delivering personalized experiences to visitors using mobile devices is crucial for maximizing engagement and...

Nenad Nicevski | Mar 5, 2025 |

Unable to view Optimizely Forms submissions when some values are too long

I discovered a form where the form submissions could not be viewed in the Optimizely UI, only downloaded. Learn how to fix the issue.

Tomas Hensrud Gulla | Mar 4, 2025 |

CMS 12 DXP Migrations - Time Zones

When it comes to migrating a project from CMS 11 and .NET Framework on the DXP to CMS 12 and .NET Core one thing you need to be aware of is the...

Scott Reed | Mar 4, 2025