Jump to content

IIS virtual folder problems


izlik

Recommended Posts

Hello, im using windows IIS 6.0 and im using the code shown bellow to to redirect users to diffrent areas of my webroot, but i wonder how i can make this work for virtual folders. if i use folding/myfolding.html on the include file i get my 404 page if i have the /folding/ as a virtual directory. so how could i make this work for a virtual directory?

 

<% session.LCID=1053 %>
<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %> 
<% Response.Expires = -1 %>
<%

SiteNameURL =  Request.ServerVariables("SERVER_NAME") 

If SiteNameURL = "www.page.se" Then
%><!-- #Include File="index.php" --><%
else

If SiteNameURL = "folding.page.se" Then
%><!-- #Include File="folding/myfolding.html" --><%
else


End If
end if


%>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.