2013-10-29 94 views
1

我需要让IIS URL重写模块工作,但我没有运气。IIS URL重写到子文件夹

我需要做的是“注入”子文件夹(PSMS)到一个URL时,它不存在,就像这样: https://something.somewhere.com/acp/default.aspx?k=v

没有子文件夹PSMS所以重定向到https://something.somewhere.com/psms/acp/default.aspx?k=v

+0

看看是否有帮助:http://stackoverflow.com/questions/14206273/redirect-root-url-iis-7/14263969#14263969 – cheesemacfly

回答

0

OK,psms是托管的根文件夹; 你需要使用类似的表达

<action type="Rewrite" url="acp/default.aspx?k={R:1}" /> 
+0

谢谢,但我不是只是想到/ acp/example,我需要每次都包含psms。所以https://something.somewhere.com/admin/default.aspx?k=v也会转到https://something.somewhere.com/psms/admin/default.aspx?k=v –