PHP Param + URL重写+域名

I'm planning to build a site. For example, let's say that I'm building a website (cardealer.com) that list all car dealers. Each car dealer will buy their own domain. Data example :

| DealerA | dealera.com |
| DealerB | dealerb.com |

Ok now the situation will be like : If I go to the url dealera.com, I will see cardealer.com?domain=DealerA .

Is it possible? If it is, How can I achieve this? Thank you

Yes it's very simple. There are a few ways to achieve this. One way to set the URL/parameterforwarding directly in the domainsettings. Another way would be to write redirects in your .htaccess files (mod rewrite). The only thing is: you need to have access to all domain settings or webspaces/servers.

The owner of dealera.com will need to have his domain pointing to your IP, additionally you will have to configure dealera.com as an alias for your domain, if it is name-based (not ip-based).

On handling the requests you will have different options. You can hide the second domain name (cardealer.com) via internal rewriting or a frameset, or you could use an explicit redirect to your own domain, if the common site should be presented under that name.