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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:23:48+00:00 2026-05-23T04:23:48+00:00

My MVC project uses the default location (/Content/…) So where this code: <div id=headerstyle=background-image:

  • 0

My MVC project uses the default location (/Content/…)

So where this code:

<div id="header"style="background-image: url('/Content/images/header_.jpg')">

resolves as http://www.myDomain.com/content/images/header_.jpg

I’m moving my images files to S3 so now they resolve from ‘http://images.myDomain.com&#8217; Do I have to convert all the links in the project to that absolute path?

Is there perhaps an IIS7x property to help here?

EDIT: The question seems to boil down to the specifics of working with IIS’s Rewrite Module. The samples I’ve seen so far show how to manipulate the lower ends and query string of a URI. I’m needing to remap the domain end of the URI:

http://www.myDomain.com/content/images/header_.jpg
needs to become:
http://images.myDomain.com/header_.jpg

thx

  • 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-23T04:23:49+00:00Added an answer on May 23, 2026 at 4:23 am

    I’m not sure I understand you correctly. Do you mean

    How do I transparently rewrite image urls like http://www.myDomain.com/Content/myImage.png as http://images.myDomain.com/Content/myImage.png at render time?

    Or

    How do I serve images like http://images.myDomain.com/Content/myImage.png transparently from S3?

    There’s a DNS trick to answer the second one.

    Create the ‘images.myDomain.com’ bucket, and put your content in it under the ‘/Content/’ path. Since S3 exposes buckets as domains in their own right, you can now get your content with

    http://images.myDomain.com.s3.amazonaws.com/Content/myImage.png

    You can then create a CNAME record in your own DNS provider taking ‘images.myDomain.com’ to ‘images.myDomain.com.s3.amazonaws.com’

    This lets you link to your images as

    http://images.myDomain.com/Content/myImage.png

    ..and yet have them served from S3 (You might also consider a full CDN such as cloud front.)

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

Sidebar

Related Questions

I have an asp.net mvc application, which uses the default user database. It all
The default ASP.NET MVC project sets up a Models directory that I don't know
I'm doing some project maintenance on the source code for an MVC JS website
We can an MVC app that uses the default folder conventions for the HTML
I am working on an MVC project, which uses JQGrid. In one of my
I am using an ASP.NET MVC project and everytime I add a class to
I'm working on a Spring MVC project, and I have unit tests for all
I have an ASP.NET MVC project with a form. In the Action method that
I have an ASP.NET MVC project and I have a single action that accepts
I have a new ASP.NET MVC project (my first), and I had been running

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.