有没有办法将友好的 url 从 wordpress 站点重定向到 asp.net 站点。
例如http://www.oldsite.com/blog/2012/11/stress-less-at-christmas-with-natural-health-products/
到
http://www.newsite.com/category/stress-less-at-christmas-with-natural-health-products.aspx
谢谢拉维
有没有办法将友好的 url 从 wordpress 站点重定向到 asp.net 站点。
例如http://www.oldsite.com/blog/2012/11/stress-less-at-christmas-with-natural-health-products/
到
http://www.newsite.com/category/stress-less-at-christmas-with-natural-health-products.aspx
谢谢拉维
是的,但如何做到这一点取决于您的 WordPress 网站所在的网络服务器类型。如果它使用 Apache(通常用于 Linux,但有时用于 Windows),您将需要使用 mod_rewrite 通过 regex 重新映射 URL。
如果 WordPress 在 IIS(Windows 服务器的典型情况)上运行,如果您可以控制服务器,则可以安装URL Rewrite,或者您可以询问您的托管服务提供商是否包含它。安装后,您可以使用 regex 对 URL 进行类似的重新映射。