I need to make an ASP file that will take the domain that the browser is currently using and store it in an array. Then I want it to compair it to (3) pre-defined domain names. And if it matches one (which it will) I want it to load up a given url.
Here's a Psudeo code outline.
If someone types in http://www.testing.com, I want it to check the following:
-is it http://www.whoknows.com? if so load http://www.whoknows.com/whoknows/
-else is it http://www.whocares.com? if so load http://www.whocares.com/whocares/
-else is it http://www.testing.com? if so load http://www.testing.com/testing/
I have (3) domain names pointing to one IP. I want to have an app that will check to see what domain name was typed and send you off to the domain and subfolder where the site resides.
LMK... thanks!
Here's a Psudeo code outline.
If someone types in http://www.testing.com, I want it to check the following:
-is it http://www.whoknows.com? if so load http://www.whoknows.com/whoknows/
-else is it http://www.whocares.com? if so load http://www.whocares.com/whocares/
-else is it http://www.testing.com? if so load http://www.testing.com/testing/
I have (3) domain names pointing to one IP. I want to have an app that will check to see what domain name was typed and send you off to the domain and subfolder where the site resides.
LMK... thanks!
