-1

I am giving an experimental go at "multisite-cms". My problem is catching up all domains and redirecting with params, for instance:

www.domain.com will be redirected at www.maindomain.com/index.php?d=www.domain.com

but while the maindomain.com not showing, so it looks like its www.domain.com at all times.

Thanks.

2
  • There are too many ways to approach this problem. The answers would just turn into a straw-poll for which one people liked. The best thing is to do some research on the topic yourself, find two or three, analyze them, determine if they work for you or not, and try them out. Come to us when you have a specific question about something you have attempted to do.
    – Tobi Nary
    Mar 12, 2016 at 11:04
  • All that has been posted is a vague description. However, we need you to ask a question. We can't be sure what you want from us. Please edit your post to include a valid question that we can answer. Reminder: make sure you know what is on-topic here, asking us to write the program for you and suggestions are off-topic.
    – Tobi Nary
    Mar 12, 2016 at 11:08

1 Answer 1

0

Use $_SERVER['HTTP_HOST'] to detect domain name and generate your dynamic content according to that.

You also have to point your all domain names DNS to your main host. You can use A records or CNAME records to do that. Recently I have done something like that and it was fairly easy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.