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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:59:01+00:00 2026-06-10T21:59:01+00:00

It took 12 hours and dozen of posts on stackoverflow turned purple but still

  • 0

It took 12 hours and dozen of posts on stackoverflow turned purple but still don’t know what did I do wrong

I’m tried to setup cookie-free domain using mod_rewrite on .htaccess rewriting subdomain (a1,a2,a3,a4,a5) to root.

here is what I got so far..

RewriteCond %{HTTP_HOST} ^a1.my-domain.com [NC]
RewriteRule ^(.*)$ http://www.my-domain.com/$1 [R=301,NC]

then, I uploaded to the root directory and opened a php file from the browser with this code

<img src="http://a1.my-domain.com/images/imgname.jpg">

also tried go directly to the URL

http://a1.my-domain.com/images/imgname.jpg
http://a1.my-domain.com/

but both are not working, the image didn’t show up, while other codes in .htaccess works just fine. Could you please suggest a solution on this?

////////////// EDIT MORE INFO //////////////

According to – http://www.stoimen.com/blog/2010/03/12/use-cookie-free-domain-and-cdn-for-static-content/ – I want to setup a Cookie Free Domain without moving resources to the subdomain and to create a pararel load which, from what I understand, increase connection when the website load and in the same time make it cookie free.

I want to load the html below

<img src="http://www.my-domain.com/images/imageA.jpg">
<img src="http://www.my-domain.com/images/imageB.jpg">
<img src="http://www.my-domain.com/images/imageC.jpg">

using these below (pointing ‘a*.my-domain.com’ to ‘www.my-domain.com’)

<img src="http://a1.my-domain.com/images/imageA.jpg">
<img src="http://a2.my-domain.com/images/imageB.jpg">
<img src="http://a3.my-domain.com/images/imageC.jpg">

By reading about Cookie-Free, I just need to create a subdomain and point it to the root www but, as my host provides DirectAdmin control panel, I can’t point subdomain anywhere but the subfolder with its name and I don’t have access to Apache for modifying a Virtual Host configuration. So, I tried to use .htaccess to do it. Can you suggest how to do it? and I’m quite new to this so, please correct me if I misunderstood. Thank you 🙂

  • 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-10T21:59:03+00:00Added an answer on June 10, 2026 at 9:59 pm

    Going off what you’ve been saying in the comments, it sounds like you are trying to increase load times by spreading content across multiple hostnames, so more stuff is loaded in parallel.

    An A record is a host – you would use this if you wanted a physical sub directory directory.

    A CNAME is an alias, and points to another address. It’s simply a ‘pretty URL’ masking something else, if you will.

    Sounds like you need a CNAME, not an A record.

    Unlike my comment earlier, as far as I am aware, you need to specify all your CNAMEs. Each CNAME a1 a2 etc would point to your root domain.

    You then need to add a1.domain.com as aliases to your domain in your web control panel.

    Specify each hostname and redirect it with .htaccess file.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^subdomain\.* [NC]
    RewriteRule .* http://www.domain.tld/subdomain/ [L]
    

    I’m not sure, but propagation might be an issue here, I forget if CNAMES are instantly accessible or not…

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

Sidebar

Related Questions

It took me hours to finally get the format right on all browsers but
Hello It took hours now and I don't have a clue whats going on
I took many hours trying to solve this problem I have attempted, without success.
I have a very strange problem, which took already several hours of my attention:
I recently took over a project and they have a SQL job setup to
It took me hours to figure out how to implement a timer into my
in one of our servers, Garbage Collection took nearly three hours to try to
So I have sent close to two hours searching for an answer but nothing
I once worked on a C++ project that took about an hour and a
it took me some time to find out that both Eclipse and Aptana get

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.