One website lots of domains

Posted on 2014-03-19
Last Modified: 2014-03-19

I have a large database of vehicle data.

I currently have 5 websites that are Make Model specific and I am going to make about 30 more.

I want to keep them all separate websites with separate domains.

I literally just copy and paste the code and change the website id in the config file and it runs off the db fully.

Is there a graceful way to run all of the sites off one website?

For-instance, let's say that I have:

can all of those DNS point to and I could say in the php or htaccess that if domain name X then load website X without ever changing the domain name, so it always looks like the domain name is specific to that vehicle.

Running LAMP

Question by:movieprodw
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 84

Assisted Solution

ozo earned 50 total points
ID: 39940913

Author Comment

ID: 39940917

Any tips or clues of to do this :-)
LVL 110

Accepted Solution

Ray Paseur earned 450 total points
ID: 39940928
You can detect the URL used to access your web site.  The full URL is in:


Compare this to your selection of web sites and you will be OK 99.99% of the time.
Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!


Author Comment

ID: 39940941
Thank you Ray.

Can you please give me an example of the DNS I should use
LVL 110

Expert Comment

by:Ray Paseur
ID: 39940950
I don't think any special DNS would be needed -- just point all of the registered URLs to the same web server.

Author Closing Comment

ID: 39940977
Thank you
LVL 110

Expert Comment

by:Ray Paseur
ID: 39940984
Thanks for the points! ~Ray
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39941165
I had one client that had about 20 websites using the same code.  They even got a wildcard SSL cert that covered all of them.  They used Ray's method along with some htaccess code to make sure they all operated properly with the same code.  You can even put a different image or header up by detecting the URL that way.

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question