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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:23:56+00:00 2026-05-29T16:23:56+00:00

My software supports multiple domains pointed at the exact same directory, I use shared

  • 0

My software supports multiple domains pointed at the exact same directory, I use shared hosting. I need to have each domain’s favicon load from directories with their respective host names. Here is a visual…

http://www.example1.com/favicon.ico
public_html/www.example1.com/favicon.ico

\

http://www.example2.com/favicon.ico
public_html/www.example2.com/favicon.ico

\

http://www.example3.com/favicon.ico 
public_html/www.example3.com/favicon.ico

I’ve tried some rewrites along the lines like this without any success…

RewriteEngine on
RewriteRule ^favicon\.ico$ %{HTTP_HOST}/favicon\.ico

Things to keep in mind…

1.) I use shared hosting so remember that the answer I need should be short and simple.

2.) I will only accept a DYNAMIC answer, I will only use the %{HTTP_HOST} variable and NOT a static domain name as I will not be manually editing my .htaccess file every single time I add a domain name.

3.) I may end up putting a .htaccess file in those sub-directories though I do not at the moment, an exception for the favicon would be greatly appreciated though is not necessary for me to accept the answer.

4.) I’ll be more than happy to make any clarifications.

  • 1 1 Answer
  • 2 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-29T16:23:57+00:00Added an answer on May 29, 2026 at 4:23 pm

    Use this code:

    Options +FollowSymLinks -MultiViews
    # Turn mod_rewrite on
    RewriteEngine On
    
    RewriteRule ^(favicon\.ico)$ %{HTTP_HOST}/$1 [L,NC]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On shared web-hosting my software supports multiple domains (all domains point to the same
My software supports multiple domain names all pointed at the same directory on the
On shared web-hosting my software supports multiple domains (all domains point to the same
I have written a piece of software that supports plugin architecture. On the main
Now, I'm doing a project, I would like to implement this software supports multiple
We have a Windows application that can use multiple PCI adapters. These adapters all
We have a commercial software product under development. It supports Oracle, MySQL, and SQL*Server
For software applications like games, does this mean software companies have a lot of
I have this somewhat working though it's important to understand the setup. With multi-domain
Do you use many version control software (TortoiseSVN, Bazaar Explorer, smartgit etc)? One software

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.