When we publish map (or other) services using ArcCatalog then it automatically creates REST url in the following format:
http://<arcgisserver>/arcgis/rest/<servicename>
But I have noticed several times the urls are in different format. See following, it has little different format. I am wondering why someone would create url in their own format? What is the concern? Is it possible to create rest end point without including /rest/ word in the url?
Popup | ArcGIS API for JavaScript