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 %> Quote Link to comment https://forums.phpfreaks.com/topic/51587-iis-virtual-folder-problems/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.