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

  • Home
  • SEARCH
  • 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 7868527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:01:48+00:00 2026-06-03T01:01:48+00:00

This is a newbie question, I know, but I couldn’t find clear answer. My

  • 0

This is a newbie question, I know, but I couldn’t find clear answer.

My web root looks like this:

/index.html

/img

I set up subdomain img.my-domain.com, it points to /img folder

Now, in my index.html I call image located in subdomain i.e. folder img

I can do it using relative and absolute path, both are working:

src=”/img/image.jpg”

src=”http://img.my-domain.com/image.jpg”

My question is: is there any difference? In the context of parallel downloads concept, is the image gonna be perceived by browser as coming from subdomain in both cases?

I have a lot of images and want to serve them from 2 subdomains. However I develop locally and when the website will go online, I would have to change image links from relative to absolute in case absolute path is required.

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-03T01:01:49+00:00Added an answer on June 3, 2026 at 1:01 am

    src=”/img/image.jpg”

    Will send cookies for http://www.my-domain.com. Won’t appear as a separate domain.

    src=”http://img.my-domain.com/image.jpg”

    Will have separate cookies. Many websites do this to improve performance.

    You should real use the relative protocol so if you need SSL, you won’t get warnings. src="//img.my-domain.com/image.jpg"

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

Sidebar

Related Questions

I know this is a total newbie question, but the answer may not be
I know this is a bit of a newbie question, but are there equivalents
I am a newbie on HTML5. I know this is a silly question but
Sorry for this newbie question, but I can't find on google what I need
I know this may be an ultra-newbie question, but - although I've been coding
I know this is a newbie question, but I haven't seen an explanation and
I know this is a newbie question, but where is the ASP.Net/Ajax tab control?
Now, I know this might be a newbie question, but I always screws this
this is a bit of a newbie question but I can't seem to find
This is a very newbie question. I want to know how to create a

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.