Home > Microsoft > Default.aspx page for multiple site’s redirection in on single IIS

Default.aspx page for multiple site’s redirection in on single IIS

<%

If Request.ServerVariables(“SERVER_NAME”)=”site.domain.com” Then

response.redirect(“site”)

ElseIf Request.ServerVariables(“SERVER_NAME”)=”site” Then

response.redirect(“site”)

ElseIf Request.ServerVariables(“SERVER_NAME”)=”site2.domain.com” Then

response.redirect(“site2”)

ElseIf Request.ServerVariables(“SERVER_NAME”)=”site2″ Then

response.redirect(“site2”)

ElseIf Request.ServerVariables(“SERVER_NAME”)=”site3.domain.com” Then

response.redirect(“site3”)

Else

response.redirect(“site4”)

End If

%>

Advertisements
Categories: Microsoft
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: