1

有没有办法从 excel 或 csv 文件在 IIS 7 中导入/更新 100 个 301 重定向

Excel文件格式目前由两列组成,第一列由旧网址组成,第二列由新网址组成,有点像这种格式

https://support.3dcart.com/Knowledgebase/Article/View/297/12/how-do-i-import-my-301-redirects

4

1 回答 1

-2

从 web.config 文件中复制 XML 格式的重定向,例如:

<configuration>
  <location path="services.htm">
    <system.webServer>
      <httpRedirect enabled="true" destination="http://domain.com/services" httpResponseStatus="Permanent" />
    </system.webServer>
  </location>
  <location path="products.htm">
    <system.webServer>
      <httpRedirect enabled="true" destination="http://domain.com/products" httpResponseStatus="Permanent" />
    </system.webServer>
  </location>
</configuration>

将其粘贴到新的记事本文档中。将其另存为 web.xml。在 Excel 中打开它。Excel 应该会自动创建一个模式,并且它应该以与您想要的格式相似的格式出现。如果需要,可以进一步格式化。将其保存为 CSV。

于 2013-02-27T03:25:39.077 回答