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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:08:20+00:00 2026-06-11T19:08:20+00:00

We have two domains, www.aaa.com and www.bbb.com. Both point to the same root directory

  • 0

We have two domains, http://www.aaa.com and http://www.bbb.com. Both point to the same root directory on the server.

The server has two sub-directories in the root: /abc/ and /xyz/.

If someone types in http://www.aaa.com/abc/ They should go to /abc/ (like normal)
If someone types in http://www.aaa.com/xyz/ They should go to /xyz/ (like normal)
** If someone types in http://www.bbb.com/abc/ They should go to /xyz/ (using the rewrite)
If someone types in http://www.bbb.com/xyz/ They should go to /xyz/ (like normal)

How do we write that rewrite for the third case above, where it only affects domain http://www.bbb.com and not http://www.aaa.com?

  • 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-11T19:08:21+00:00Added an answer on June 11, 2026 at 7:08 pm

    You need to use condition and a rule:

    RewriteCond %{HTTP:Host} ^www\.bbb\.com$ [NC]
    RewriteRule ^abc$ /xyz [NC,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two domains for example www.male.com and www.female.com which both point to the
I have two different domains that both point to my homepage in the same
I have a site that redirects from www.domain.com to www.domain.com/sub I have two domains
I have two domains which point to the same root and I want to
I have two different domains (let's say www.site1.com and www.site2.com) that point to the
I have two domains that point to the same IP, which is an Ubuntu
This is the setup: I have two websites on two different domains: www.website1.com www.someotherwebsite.com
I have a website that has two domains pointing to the same content. Let's
I have two domains - crmpicco.co.uk and ayrshireminis.com - if I browse to: www.crmpicco.co.uk/mini/new
I have a .net webapplication with the following domains: www.domain.com sub.domain.com files.domain.com When 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.