How to set a custom route value so that only members with the Admin role can access my elmah.axd page in MVC3 <p>I need to set a custom route value so that you are forced to go to </p> <p>site/admin/elmah.axd</p> <p>In my web.config I have:</p> <pre><code>&lt;location path="elmah.axd"&gt; &lt;system.web&gt; &lt;authorization&gt; &lt;allow roles="Admin" /&gt; &lt;deny users="*" /&gt; &lt;/authorization&gt; &lt;/system.web&gt; &lt;/location&gt; </code></pre> <p>Plus all the other pertinent elmah settings. If I remove that section I can just type:</p> <p>site/elmah.axd </p> <p>But I only want Admin's to be able to access this page.</p> <p>I have an admin page that you login and if you are in the Admin Role then you should be redirected to elmah.axd</p> <pre><code> public AdminController(IRepository&lt;User&gt; userRepository) { _userRepository = userRepository; } // // GET: /Admin/ public ActionResult Index() { return View(Constants.Admin); } public ActionResult AdminLogin(string SSN) { var user = _userRepository.FindBy(x =&gt; x.UserName == SSN).SingleOrDefault(); if (UserIsAnAdmin(user)) { return RedirectToRoute("/elmah.axd"); } return View(Constants.DeniedAccess); } </code></pre> <p>I have a route value in my Global.asax file that I need help with.</p> <pre><code> routes.MapRoute( "mocklogin", "{controller}/{action}", // URL with parameters new { controller = "MockLogin", action = "Index" } // Parameter defaults ); routes.MapRoute( "elmah.axd", "{controller}/{action}", // URL with parameters ); routes.MapRoute( "Default", // Route name "{controller}/{action}", // URL with parameters //need something here redirecting to the elmah.axd page ); </code></pre> <p>Is there a way to redirect the page to the /elmah.axd page on my site.</p> <p>In the end I want to go to the Admin page of my site and when I click submit if the User is an admin I want to redirect to the elmah.axd page. Otherwise I go to my custom error page. I need to somehow get the ssn on the controller call the conditional and if true redirect to elmah.axd. How do I redirect to elmah.axd in MVC?</p>