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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:45:35+00:00 2026-05-27T18:45:35+00:00

I have 3 domains, for the same web app, since I don’t want to

  • 0

I have 3 domains, for the same web app, since I don’t want to have duplicated content I want to redirect the other two domains to the primary domain.

If a user types client_xyz.domain2.com it should be redirected to client_xyz.primarydomain.com.

If a user types client_xyz.domain2.com/folder/file/etc it should be redirected to client_xyz.primarydomain.com/folder/file/etc.

If a user types domain2.com/test/page it should be redirected to primarydomain.com/test/page

I thought this is the best solution to avoid Google penalty for duplicated content.
If you think there’s a better solution to deal with this (eg. DNS), let me know.

  • 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-27T18:45:35+00:00Added an answer on May 27, 2026 at 6:45 pm

    Put this code in your .htaccess file:

    Options +FollowSymLinks -MultiViews
    RewriteEngine on
    
    RewriteOptions MaxRedirects=10
    
    RewriteCond %{HTTP_HOST} ^(client_xyz\.)?domain2\.com$ [NC]
    RewriteRule ^ http://%1primarydomain.com%{REQUEST_URI} [NE,R=301,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have similar instances of the same web application running across many domains. I
i have two .net web application and they ara running on different domain same
I have two domains that point to the same IP, which is an Ubuntu
I have a JSON web service that I want to run on the same
I have an app in Cydia and I want to make the same application
I have a web app in http://domain1/app1/called.html , and I want to embed that
I have a web app can be installed on lots of domains and paths.
I have a web app that users upload files to. I want to authenticate
I have an iframe in the same domain as the web page. I have
I have 3 domains pointing to the same website, with no redirects, so domain1.com,

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.