Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8496161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:46:32+00:00 2026-06-10T23:46:32+00:00

There is a SiteMinder rule placed in to allow access to /public/* pages for

  • 0

There is a SiteMinder rule placed in to allow access to “/public/*” pages for unauthenticated users. But in my mvc folder structure there is no physical folder (or area) called “public” and I don’t want to do that as I should be able to add public pages freely in any area. Now, unauthenticated users will not have access to public pages (actions). So I need a workaround to get through SiteMinder for public pages.

There are two things in my mind that I need to find a solution.

  1. Rewrite routes by prepending “/public” to them (conditionally may be based on Authorized attribute) for SiteMinder.

  2. Once a url received with “/public” that should be routed to proper area/controller/action ignoring “/public” portion of it.

I still couldn’t figure out a way to code above. If you experts know how to achieve above or have different thoughts please post.

Cheers,
moosila

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:46:34+00:00Added an answer on June 10, 2026 at 11:46 pm

    Finally the question narrowed down to “How can I rewrite route with adding “/public” after the root and before the area/controller/action?”

    I did a POC to achieve above with a help of my co-worker: Using reflection obtain appropriate controller name, action name and analysing namespace get the area name.
    Now we have new pattern with “/public”.

    routeUrlPattern = string.Format("public/{0}/{1}/{2}/{{id}}", areaName, controllerName, actionName);
    
    
     RouteTable.Routes.Add(new Route(routeUrlPattern, new MvcRouteHandler())
    

    Above routes should be added before non public routes in the the table to work for /public.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There's a Rails 3.2.3 web application which doesn't use any database. But in spite
There are nice SO question and answers about this issue, but these options didn't
There are two kinds equals methods? public boolean equals(Bigram b) { return b.first ==
There was a smbmrx sample code using RDBSS in WDK Vista. But since WDK
There was a thread on this in comp.lang.javascript recently where victory was announced but
There have been a few questions on SO about the pimpl idiom , but
There are plenty of questions and answers to this like this question but I
There are many libraries for PHP which are great to send emails. But which
We have SiteMinder set-up to protect some pages, and not to protect others, based
There's a lot of reading on self referencing problems, but I can't seem to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.