View Full Version : Multiple Domains, to the same account
ebonovic
05-21-2003, 07:11 AM
Where would I submit my request to have additional domain names point to my "core" domain name...
www.mysite.com
I would like to setup at least one possible two additional "alias" domain names:
www.mysitelongversionname.com -> www.mysite.com
Also, Is there a Fee in setting this up?
And does DiscountASP.net do registration of domain names? or should I register the name first.
bruce
05-21-2003, 11:37 AM
You can email support@discountasp.net to setup domain pointer.
Domain pointer costs $15 setup
[b]quote:Originally posted by ebonovic
Where would I submit my request to have additional domain names point to my "core" domain name...
www.mysite.com
I would like to setup at least one possible two additional "alias" domain names:
www.mysitelongversionname.com -> www.mysite.com
Also, Is there a Fee in setting this up?
And does DiscountASP.net do registration of domain names? or should I register the name first.
</blockquote id="quote"></font id="quote">
homeacademy
06-07-2003, 06:54 AM
I would be interested in pointing an already-registered domain name to a subdirectory on my DiscountASP.NET account, ie www.mysite2.com -> www.mysite.com/mysite2/ Does the mentioned domain pointer service allow me to do this? Thanks for any assistance.
No. Our Domain Pointer Addon points to the document root.
DiscountASP.NET
GraemeF
08-14-2003, 06:25 AM
[b]quote:Originally posted by dasp
No. Our Domain Pointer Addon points to the document root.
</blockquote id="quote"></font id="quote">
Is there anything in the HTTP headers that could be used to tell which domain was requested?
bruce
08-14-2003, 11:21 AM
Not clear what your question is, please elaborate.
thx
[b]quote:Originally posted by GraemeF
[b]quote:Originally posted by dasp
No. Our Domain Pointer Addon points to the document root.
</blockquote id="quote"></font id="quote">
Is there anything in the HTTP headers that could be used to tell which domain was requested?
</blockquote id="quote"></font id="quote">
GraemeF
08-15-2003, 12:20 AM
Sorry :)
What I mean is, as the second domain can only be forwarded to the root of the first, would it be possible to tell the difference between the two in script at the root?
So, in the default.aspx file at the root you could check the RequestURI and see if it was for "www.mysitelongversionname.com" or "www.mysite.com" and return different content as appropriate?
Or would it show "www.mysite.com" in either case?
Not sure if that's clearer or not ;)
Camilo99
03-08-2004, 08:43 AM
Well, I don't know if you still need this info or not, if not, maybe someone else can find it useful.
This ASP script will help you in doing what you want:
<%
Dim HTTPHost
HTTPHost = Lcase(Request.ServerVariables("HTTP_HOST"))
Select Case HTTPHost
Case "www.domain1.com", "domain1.com"
Response.Redirect "http://www.domain1.com/domain1folder"
Case "www.domain2.com", "domain2.com.co"
Response.Redirect "http://www.domain2.com/domain2folder"
End Select
%>
This would work great to host several low traffic, low needs sites with just one account, except for the fact that DASP does not support email on domain pointers.
ubelt
03-24-2004, 01:45 AM
Does the domain pointer also apply to the emails?
If I have webmag.com pointing to webzine.com, will emails to admin@webmag.com be delivered to admin@webzine.com?
Thanks.
No, there is no email service for domain pointers.
burhanitcom
04-28-2006, 09:46 AM
Dear,
1- Must I change the DNS of the domain pointer ?domain1.com? to DASP DNS :
ns1.discontasp.net
ns2.discontasp.net
Which will take from 48 to 72 hours to be effect?
2- Must I but this script in the home page?
3- Must I change the home page name from ? index.html? to ?index.asp? ?
Thank you
Kantreddi
05-01-2006, 04:39 AM
Many Webhosts are now offering multiple domain support for single account. Discountasp should consider this option. This would help many.
Lummers
09-05-2006, 02:04 AM
When I tried the code sample above I had to change it to
<%
Dim HTTPHost
HTTPHost = Lcase(Request.ServerVariables("HTTP_HOST"))
Select Case HTTPHost
Case "www.domain1.com", "domain1.com"
Response.Redirect (http://www.domain1.com/domain1folder)
Case "www.domain2.com", "domain2.com.co"
Response.Redirect (http://www.domain2.com/domain2folder)
End Select
%>
to stop the errors
and all I got was a blank screen????
wisemx
09-05-2006, 09:12 AM
In the response object wrap the URL in quotes.
F.Y.I.,this can alsobe donewith ElseIf statements:
<%
Dim Caught
Caught = Request.ServerVariables("SERVER_NAME")
If Caught = "www.firstsite. (http://www.firstsite.)com" Then
Response.Redirect("http://msdn1.microsoft.com/en-us/default.aspx")
ElseIf Caught = "secondsite.com" Then
Response.Redirect("http://www.google.com")
Else
Response.Redirect("http://www.mainsite.com/thisfolder/")
End If
%>
...In the above example make sure /thisfolder/ on the site has a default document.
vBulletin® ©Jelsoft Enterprises Ltd.