I guess you get login screen because web.config still contains location directive for /EPiServer/ virtual path and it requires user to be in the specific roles, so user is redirected to login screen.
Try to remove location directive for your secret /EPiServer/ path in the web.config
I also have the same question, How to completely disable the edit/admin ui.
If I remove all virtualPaths episerver complains about the ClientResources package.config not found.
I want everything related to editing/admin to be completely gone fron frontend nodes.
I have removed all virtualPaths and all location elements.
Adding back the virtualPath pointing to ~/secure surely cant be the solution!?
I added an empty \ClientResources\ClientResources\packages.config file.
Doing that I can remove all virtualPaths and all location elements
But doing that makes EPiServer always spit out css and javascript references to files that do not exist as well as producing javascript error related to QuickNavigator.
Yikes!
I'm trying to remove the edit / admin interface on a public facing webserver but when I remove the virtualPathProviders as instructed in a few blog posts, I am presented the following error:
Could not find a part of the path '<SITEFOLDER>\ClientResources\ClientResources\packages.config'.
If I re-enable virtualPath="~/EPiServer/" it works. However, when doing this, if a user browses to /episerver/ they are redirected to /Util/login.aspx which presents a 404 (this is expected as the Util virtual path has been removed). I don't want the site to redirect, I would just want /episerver to give a 404.
How can I achieve this?