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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:01:23+00:00 2026-05-25T18:01:23+00:00

My company is in the process of deprecating our Web Forms projects and using

  • 0

My company is in the process of deprecating our Web Forms projects and using just MVC 3. The default folder for images in MVC 3 is ~/Content/images/.. The problem is that our WebForms was pointing to ~/images/..

We have clients who have direct links to https://www.myurl.com/images/imagename.png and we want it to automatically return the image at https://www.myurl.com/content/images/imagename.png instead.

What is the best route to handle this?

  • 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-05-25T18:01:24+00:00Added an answer on May 25, 2026 at 6:01 pm

    You could create an ImageController controller, something like this:

    public class ImageController : Controller
    {
        public ActionResult Index(string filename)
        {
            return Redirect("~/Content/images/" + filename);
        }
    }
    

    Then you’d set up your routing so that the URL /images/ goes to ImageController::Index.

    public static void RegisterRoutes(RouteCollection routes)
    {
        // ...
        routes.MapRoute(
            "ImageRedirects", "images/{filename}", 
            new { controller = "Image", filename = "" });
        // ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a process at our company that processes TIFF images. I have a
I want to Automate the build process of my company. We are Using.Net platform
How can one process an employee login using the company LDAP's directory with a
Consider a network folder: \\desiis\c$\Company\B2b\Monitor On that machine, any process that tries to delete
All applicants to our company must pass a simple quiz using C as part
I'm in the process of trying to move our company from SalesForce to SugarCRM,
Here is my company's current process for moving changes from our development server to
My company is in the process of rewriting our software from scratch, and I'm
At my company we use the default agile process template with some modificiations. One
In our company we have a business process that needs to: Get data from

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.