저도 자동생성형 만들어 봤음...모 ASP이긴 한데..간단하게 원리는
도메인 레코드 생성해줄때 *.start77.com 을...특정서버로 보내주면...start77.com안에 무엇이 와도 글리로 가염...
글구나서..
받는 거져....
도메인 앞에 www 제외하고 ....서브도메인이 오면 그걸 변수로 처리해서..
특정페이지로 보내주는데....
밑에는 top 0프레임 하나 삽입해놓으면...최종적으로
서브도메인.start77.com
으로 하고 밑에는 실질적인 페이로~
모 하기 나름인데~
일케 하는법도 있음..수고~
Arr_HTTP_HOST = Split(LCase(Request.ServerVariables("HTTP_HOST")),".") ' www.sir.co.kr 변수를 배열로
If Arr_HTTP_HOST(0) = "www" Then
Only_Domain = Mid(LCase(Request.ServerVariables("HTTP_HOST")), 5, 100)
Else
Only_Domain = LCase(Request.ServerVariables("HTTP_HOST"))
End If
' aql="select sid from m_shop where sid='" & Arr_HTTP_HOST(0) & "'"
' set aql=objConn.Execute(aql)
' if aql.Bof and aql.Eof then
' strURL="/errPage.asp"
' else
' strURL="/shop/main.asp?sid=" & Arr_HTTP_HOST(0)
' end if
' aql.Close:set aql=nothing
' response.redirect strURL
댓글 10개
저도 자동생성형 만들어 봤음...모 ASP이긴 한데..간단하게 원리는
도메인 레코드 생성해줄때 *.start77.com 을...특정서버로 보내주면...start77.com안에 무엇이 와도 글리로 가염...
글구나서..
받는 거져....
도메인 앞에 www 제외하고 ....서브도메인이 오면 그걸 변수로 처리해서..
특정페이지로 보내주는데....
밑에는 top 0프레임 하나 삽입해놓으면...최종적으로
서브도메인.start77.com
으로 하고 밑에는 실질적인 페이로~
모 하기 나름인데~
일케 하는법도 있음..수고~
Arr_HTTP_HOST = Split(LCase(Request.ServerVariables("HTTP_HOST")),".") ' www.sir.co.kr 변수를 배열로
If Arr_HTTP_HOST(0) = "www" Then
Only_Domain = Mid(LCase(Request.ServerVariables("HTTP_HOST")), 5, 100)
Else
Only_Domain = LCase(Request.ServerVariables("HTTP_HOST"))
End If
' aql="select sid from m_shop where sid='" & Arr_HTTP_HOST(0) & "'"
' set aql=objConn.Execute(aql)
' if aql.Bof and aql.Eof then
' strURL="/errPage.asp"
' else
' strURL="/shop/main.asp?sid=" & Arr_HTTP_HOST(0)
' end if
' aql.Close:set aql=nothing
' response.redirect strURL
' end if
<frameset rows="0,*" frameborder="no" border="0" framespacing="0" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" noresize>
<frame src="UntitledFrame-3" name="top" scrolling="no" topmargin=0>
<frame name="main" src="<%=strURL%>" noresize topmargin="0" marginheight="0">
</frameset><noframes></noframes>
저는 blog.mahler83.net 이렇게 운영중입니다 ^^
요즘은 코딩에 손 안 대고 본업에 바쁘게 지내요 ㅎㅎ