Jquery 301 IIS上的URL编码
因此,我尝试在我的网站上设置301重定向,所有新页面都使用JQUERY选项卡,因为JQUERY选项卡使用特定ID打开新选项卡,我尝试设置我的301,如/folder/file.html#tabId。因此,我的301实际上看起来是这样的:Jquery 301 IIS上的URL编码,jquery,.htaccess,redirect,iis,url-encoding,Jquery,.htaccess,Redirect,Iis,Url Encoding,因此,我尝试在我的网站上设置301重定向,所有新页面都使用JQUERY选项卡,因为JQUERY选项卡使用特定ID打开新选项卡,我尝试设置我的301,如/folder/file.html#tabId。因此,我的301实际上看起来是这样的: products/productname-overview.html->/product/productname.html#overview products/productname-features.html->/product/productname.ht
- products/productname-overview.html->/product/productname.html#overview
- products/productname-features.html->/product/productname.html#功能
- products/productname-specs.html->/product/productname.html#specs
- products/productname-overview.html->/product/productname.html%23概述
谢谢 您可以在查询字符串中传递片段的值,并使用js检索它,而不是重定向到片段。您的重定向条目如下所示:
products/productname-overview.html -> /product/productname.html?fragment=overview