Last post Jul 01, 2009 04:17 AM by sajid_ali
Jun 30, 2009 10:21 PM|MJB1980|LINK
Hey guys and girls!
As always, thank you in advance for any help that can be offered.
I'm sure what I'm looking to do has been done before (I just haven't searched for the right keywords yet). I'm contimplating hosting several different websites through my one hosting account. My host requires me to use a Domain Pointer to point any registered
domain to my little piece of the server. Then, hardcode a gateway in the root to redirect traffic based upon the request. This is working just fine. The issue I'm having is this.
My primary domain is www.Domain1.com - and all the files for that site are located in a folder off the root called Domain1.
The second domain is www.Domain2.com - and all the files for THAT site are located in a folder off the root called Domain2. (original, no?!)
The redirect is working fine. When someone types in www.domain2.com it takes them to the right folder. The problem (as I see it anyway) is that the URL is displaying as: www.Domain1.com/Domain1/Default.aspx and/or www.Domain2.com/Domain2/Default.aspx
Obviously, the /Domain1 and /Domain2 are the subfolders the redirect is being pointed to.
So what I would like to do is somehow (possible???) remove the subfolder name out of the URL string - ie: www.Domain1.com/Domain1/Default.aspx = www.Domain1.com/Default.aspx
Is this possible? It 'sounds' like it's possible.
Also, even if this is possible, is this opening a larger issue for future development? Are there downsides to hosting multiple applications under one account? Is it more beneficial simply to open new accounts per application? Regardless, I'd like to find
out if there is some code (perhaps even a sample) source that could get me in the right direction.
Thanks in advance!
Jul 01, 2009 03:52 AM|integrasol|LINK
Quick question, have you seen this article on URL rewriting, and is this something that is possible for you?
Jul 01, 2009 04:17 AM|sajid_ali|LINK
Following links may help you