我正在将网站从一台服务器移动到另一台服务器。原始服务器是IIS。我需要将所有内容从www.old.com重定向到www.new.com,除了一个目录。我需要www.old.com/folder1/folder2才能保持畅通无阻。任何人有任何指针?
这就是我现在使用的,但整个网站都被重定向。
<?xml version="1.0"?>
<configuration>
<system.webServer>
<httpRedirect enabled="true" destination="http://www.new.com/" httpResponseStatus="Permanent" exactDestination="true" />
</system.webServer>
</configuration>
谢谢!