izlik Posted May 16, 2007 Share Posted May 16, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.