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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:17:01+00:00 2026-05-22T21:17:01+00:00

I have a dedicated server (apache, php, mysql) There is a primary domain (let’s

  • 0

I have a dedicated server (apache, php, mysql)

There is a primary domain (let’s call it http://www.domain1.com) that actually holds all the files like any other regular web hosting account. Another domain (call it domain2.com) needs to forward to it, but with masking.

So domain2.com/filename.php, domain2.com/filename.php/432/r23-gjfdla-fdjslaf/ all need to show the corresponding content of domain1.com’s content, BUT the browser should still show domain2.com instead of domain1.com, and it also has to be detectable by $_SERVER[‘HTTP_HOST’] so my server knows which domain was used to contact the website.

This is because I have 2 clients who are in a partnership, so they would like each visitor to retain whatever URL they entered for independent presentation but make the content unilateral without having to update two sites at once.

  • 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-22T21:17:01+00:00Added an answer on May 22, 2026 at 9:17 pm
    <VirtualHost *:80>
      DocumentRoot /www/example1
      ServerName www.domain1.com
      ServerAlias www.domain2.com
    </VirtualHost>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dedicated server running Linux. The operating system runs the following -let's
I have a domain. And I have a dedicated windows server. It has svn
I have a dedicated server and I'm in need for building new version of
I am building an Asp.net MVC site where I have a fast dedicated server
we have a old and dying dedicated server. we want a new one at
So I have access to a dedicated server and want to finally create my
I have just installed phpMyAdmin on my new Fedora Core 10 dedicated server. I
I have a PHP site with a mySQL database that I'm working on. I'm
I have a plesk panel and root dedicated server on 1and1. I'm using custom
I have a dedicated server that hosts about 70 domains... some are just plain

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.