Greets all! I really hope this question hasn't already been answered before - because if it has - then I'll feel like an idiot for having not found it. =) And like a punk for asking again. =)
So, I have Windows 2000 advanced server - running IIS,the latest version of php - and of course MySql server. The machine is hosting two (well, more like 5 - but two that matter) domains. Directory structure is something like this
Inetpub->
wwwroot-> (this is where the main domain is)
anb-> (a subfolder of wwwroot.)
Now if a person types in www.domain1.com they get the basic wwwroot directory. If they type in www.domain2.com the server redirects them to the <anb> directory. So they can browse the site there the entire time, and it will always say www.domain2.com/currentfile.html which is what I want. You can simply link to another page in the site by doing an <a href="newfile.html">
BUT - to get php working you can't simply do a action="phpfile.php" you have to call it by action="http://www.domain1.com/anb/phpfile.php"
that of course takes them OUT of the current website (at least as far as the URL up top is concerned, and from then on, future site browsing always shows www.domain1.com/somefile.html.
Maybe I set up my domains wrong - maybe I need to do something to PHP. I just would prefer to keep the domains seperate. So that unless someone did some serious research - they'd never realize that the two domains are on the same machine and ip. Not that it's a huge security issue - just tacky - and I can forsee it getting sloppy.
Any help you guys could provide on this matter would be GREATLY appreciated. Thanks!