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
https://forums.phpfreaks.com/topic/51587-iis-virtual-folder-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.