Loading...
Area: Episerver CMS
Applies to versions: 10 and higher

Changing edit and admin view URLs

Recommendations [hide]

Episerver edit view and admin view are set up at:

yourserverhost.com/EPiServer/CMS 

by default.

Changing that requires a few changes:

In <episerver.framework>:

<add name="ProtectedModules" 
     virtualPath="~/EPiServer" 
     physicalPath="modules/_protected" 
     type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider, EPiServer.Framework.AspNet" />

should be changed to:

<add name="ProtectedModules" 
     virtualPath="~/TheNewUIPath" 
     physicalPath="modules/_protected" 
     type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider, EPiServer.Framework.AspNet" />

in <episerver>:

<applicationSettings uiUrl="~/EPiServer/CMS/" />

should be changed to:

<applicationSettings utilUrl="~/TheNewUtilPath/" uiUrl="~/TheNewUIPath/CMS/" />

then several location paths need to be changed:

<location path="EPiServer">
...
<location path="EPiServer/CMS/admin">
...
<location path="util">

should be changed to:

<location path="TheNewUIPath">
...
<location path="TheNewUIPath/CMS/admin">
...
<location path="TheNewUtilPath">

and lastly in <episerver.shell>

<protectedModules rootPath="~/EPiServer/" autoDiscovery="Modules">

should be changed to:

<protectedModules rootPath="~/TheNewUIPath/" autoDiscovery="Modules">

If you are using the default login screen you should also update the login path in Global.cs

public static readonly string LoginPath = "/util/login.aspx";

should be changed to:

public static readonly string LoginPath = "/TheNewUtilPath/login.aspx";

The end result can be seen on our How to change edit and admin mode on our GitHub.

Note: You can only change the root path and it is not possible to change the individual modules path, just the root. CMS, Shell, Commerce module names cannot be changed.

Do you find this information helpful? Please log in to provide feedback.

Last updated: Sep 27, 2019

Recommendations [hide]