Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subdomain

Status
Not open for further replies.

GeorgeBC

Programmer
Joined
Nov 23, 2005
Messages
21
Location
TR
Hi,

<%
SiteNameURL = Request.ServerVariables("SERVER_NAME")

Select Case SiteNameURL
Case "forum.domain.com"
Response.Redirect "/forum"
Case Else 'redirecting everything other than cases selected above

End Select
%>

When i enter forum.domain.com, i see forum.domain.com/forum. i dont want to see folder name. i want to see only forum.domain.com. We asked our hosting company about this, they said that they dont support it. How can i do this?

Thank you.
 
may be you can achieve this using frames...

-DNG
 
Redirect is a message sent to the browser...

The message is basically "the thing you want isn't at this URL, try this other URL instead"

The browser will then request the "other" URL.

Server.Execute and Server.Transfer are the safest ways to process a different ASP page than the one originally requested by the browser.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top