Hi community, I have don't have idea how can get it work this: -Part 1- I have a website with a doman point it (as usual) when you go to domain1.com this show you / I need point a second domain to /domains/domain2/ using alias (the url show domain2.com but if I go to domain1.com/domains/domain2/ this render the same content) -Part 2- Now I need point any other domains request this server or this ip to /domains/unknowndomain/ then if you go to domain3.com or domainX.com show this domain in the url bar but render domain1.com/domains/unknowndomain/ Eg: domain1.com render / domain2.com render /domains/domain2 domain3.com render /domains/unknowndomain/ domain4.com render /domains/unknowndomain/ domainX.com render /domains/unknowndomain/ You can help me with that? PS: Sorry I don't really speak english, then my speach can contain syntax errors jeje...
First confirm the document root path for the domain domain1.com because for example if your main domain name is domain.com and its document root path is /home/user/public_html therefore when ever you create any new domain name make sure that you are creating the document root for your additional domain domain1.com outside the /home/user/public_html directory else the url domain.com/domain1-document-path will show the same content hosted under the domain domain1.com and so on, please check the following summary for calrification Summary Main domain :: Domain.com Document Root Path :: /home/user/public_html Addon Domain :: Domain1.com Document Root Path :: /home/user/domain1.com Addon Domain :: Domain2.com Document Root Path :: /home/user/domain2.com If you use above settings then domain.com/domain/domain1.con won't show you content hosted under the domain1.com
can always use php redirect, make a php file rename to index.php or whatever you like and add <?php header( 'Location: http://droidtweak.com' ) ; ?> // replace "http://droidtweak.com" to your own domain