0
我想一个url重定向到一个子文件夹,例如:IIS重定向到子文件夹
http://localhost/test是用户将输入的,但我想这重定向到http://localhost/test/public
我找不到什么网络上的任何资源,以及我发现的大多数资源都在Apache上,这对我无能为力。
谢谢。
PlayKid
我想一个url重定向到一个子文件夹,例如:IIS重定向到子文件夹
http://localhost/test是用户将输入的,但我想这重定向到http://localhost/test/public
我找不到什么网络上的任何资源,以及我发现的大多数资源都在Apache上,这对我无能为力。
谢谢。
PlayKid
在你的web.config文件中的站点的根目录,你会把这样的事情:
<?xml version="1.0"?>
<configuration>
<location path="test">
<system.webServer>
<httpRedirect enabled="true" destination="test/public" httpResponseStatus="Permanent" />
</system.webServer>
</location>
</configuration>
我使用7版本,我已经安装了URL重写模块,但我不知道如何配置它。 – PlayKid