使用URL模式进行页面定位
如何定义一个新的URL模式?
如果你想指定一个URL模式来针对更多的页面,你有多种选择。 首先,点击下拉菜单 "选择URL匹配类型"。将出现以下选项。
- 简单匹配:这种定位模式包括页面URL的所有元素。包括任何片段或查询字符串、协议或添加的 "www"。
- 完全匹配:只针对一个特定的URL及其协议。该URL也可以包含一个片段或查询字符串。
- 开始于。只针对以您输入的值开始的URL。
- 结尾。只针对以你输入的值结尾的URL。
- 包含。只针对包含你输入的值的URL。
例子
简单匹配
如果你的用户URL的 路径与目标页面的URL路径相同,那么匹配将是正确的。
简单匹配:
正确的匹配。
- http:// www.yourwebsite.com/products/?q=lp-EOkA
- http:// www.yourwebsite.com/products/
- http: // www.yourwebsite.com/PRODUCTS
不正确的匹配。
- http:// yourwebsite.com/products/firstproduct
- http:// yourwebsite.com/products/categories
- http:// yourwebsite.com/products/favorites
完全匹配
如果您的用户URL与目标页面的URL完全相同,那么匹配将是正确的。
完全匹配:http://www.yourwebsite.com/products/firstproduct/?shlY
正确的匹配。
- http:// www.yourwebsite.com/products/firstproduct/?shlY
不正确的匹配。
- http:// www.yourwebsite.com/products/
- http:// www.yourwebsite.com/products/firstproduct/?dhlYjy25
- http:// www.yourwebsite.com/products/firstproduct/details
开头是
如果你的用户URL的开头与你指定的完全一致,那么匹配将是正确的。
开始于:http:// www.yourwebsite.com/products/
正确的匹配。
- http:// www.yourwebsite.com/products/categories/firstcategory/firstproduct/details
- http:// www.yourwebsite.com/products/
- http:// www.yourwebsite.com/products/y=4gf5
不正确的匹配。
- http:// www.yourwebsite.com/homepage/
- https:// www.yourwebsite.com/products/
- http:// yourwebsite.com/products/
结束于
如果你的用户URL的结尾与你指定的完全一致,那么匹配将是正确的。
结束于:products/
正确的匹配。
- http:// www.yourwebsite.com/products/
- http:// www.yourwebsite.com/homepage/products/
- https:// www.yourwebsite.com/products/
不正确的匹配。
- http:// www.yourwebsite.com/products/categories/
- https:// www.yourwebsite.com/products/firstproduct
- https:// www.yourwebsite.com/products/categories/favorites/
包含的内容
如果您的用户URL包含您指定的文本,那么匹配将是正确的。
包含:产品
正确的匹配。
- http:// www.yourwebsite.com/homepage/products/
- http:// www.yourwebsite.com/products/
- http:// www.yourwebsite.com/products/categories/favorites
不正确的匹配。
- http:// www.yourwebsite.com/homepage
- http:// www.yourwebsite.com/contact
- http:// www.yourwebsite.com/features