---
title: Change URLs for edit and admin views
slug: cms-12/docs/changing-edit-and-admin-view-urls
docTags: 
createdAt: 2026-08-10T15:56:00.000Z
---

Optimizely edit view and admin view are set up, by default, at `yourserverhost.com/EPiServer/CMS`.

Configure `ProtectedModuleOptions` for the path as:

`services.Configure<ProtectedModuleOptions>(p => p.RootPath = "~/TheNewUiPath");`

Configure `UIOptions` for the path as:

`services.Configure<UIOptions>(o => o.EditUrl = new System.Uri("~/TheNewUiPath/CMS/", System.UriKind.Relative));`

:::hint{type="info"}
**Note**
You can only change the root path. You cannot change the individual modules path, just the root. You cannot change *CMS*, *Shell*, and *Commerce* module names.

You cannot chages this path if Opti ID is used. The Opti ID integration overrides any existing configuration and set this path to `/ui`. This is required for Opti ID and the global navigation bar to work correctly.
:::
