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 8285693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:31:58+00:00 2026-06-08T11:31:58+00:00

I am having some problems with an MVC app that uses logic based off

  • 0

I am having some problems with an MVC app that uses logic based off data driven URLs (for routing) if my application is deployed to anywhere else other than the domain root.

I tried using various Request.Url properties to no avail.

Let’s say I deploy my app to www.mydomain.com/myapp/ or even www.mydomain.com/myapp/subapp/. In these cases how can I get /myapp/ and /myapp/subapp/ respectively. Even if the user is on a totally different page such as /myapp/Users/Recent/?

I need that so I can prefix all the data driven URLs so my app still works when not on the domain root.

Thanks.

  • 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-08T11:32:00+00:00Added an answer on June 8, 2026 at 11:32 am

    You’re looking for HttpRuntime.AppDomainAppVirtualPath.

    Note that all of the Url.* helpers will do this for you.

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

Sidebar

Related Questions

I am having some problems with the PDF files that I make using the
I'm having some problems with some commands in Java. I created a JAR that
I'm having some problems publishing an asp.net mvc3 application. When deployed, the application fails
I'm having some problems passing an integer array to an MVC controller. I'm grabbing
I have a MVC Sencha Touch application I'm building and am having some issues
I am having a small problem geting to some data within my MVC C#
I'm having some problems with deploying my application and while troubleshooting, I came across
I am writing a Asp.net MVC 2 application that uses Forms Authentication and currently
I'm having some problems with ambiguous action methods in MVC 2. I've tried implementing
I am having some trouble when publishing an MVC application to a server, and

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.