xml Miva - URI添加,删除和删除所有XML配置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml Miva - URI添加,删除和删除所有XML配置相关的知识,希望对你有一定的参考价值。

<!--
================================
<URI_Add />

Description:
	Adds a new URI to a page, category, product, or feed.

Rules:
	Requires `uri` attribute with a value starting with "/"
	For canonical URIs, add `canonical="yes"` attribute and ommit the `status` attribute.
	For non-canonical URIs (redirects or normal), ommit the `canonical` attribute, and add `status` attribute with value of: 200, 301, 302, 303, or 307
	Add an attribute & value for the designated: `page_code`, `category_code`, `product_code`, or `feed_code`
================================
-->

<!-- Canonical URI -->
<URI_Add canonical="yes" page_code="ABUS" uri="/about-us.html" />
<URI_Add canonical="yes" category_code="clothing" uri="/clothing.html" />
<URI_Add canonical="yes" product_code="t-shirt" uri="/t-shirt.html" />
<URI_Add canonical="yes" feed_code="sitemap" uri="/sitemap.xml" />

<!-- 301 Redirect -->
<URI_Add status="301" page_code="ABUS" uri="/about-us.html" />
<URI_Add status="301" category_code="clothing" uri="/clothing.html" />
<URI_Add status="301" product_code="t-shirt" uri="/t-shirt.html" />
<URI_Add status="301" feed_code="sitemap" uri="/sitemap.xml" />

<!-- Other Statuses -->
<URI_Add status="200" page_code="ABUS" uri="/about-us.html" />
<URI_Add status="302" category_code="clothing" uri="/clothing.html" />
<URI_Add status="303" product_code="t-shirt" uri="/t-shirt.html" />
<URI_Add status="307" feed_code="sitemap" uri="/sitemap.xml" />


<!--
================================
<URI_Delete />

Description:
	Deletes the corresponding URI from the database
================================
-->

<URI_Delete uri="/about-us.html" />
<URI_Delete uri="/clothing.html" />
<URI_Delete uri="/t-shirt.html" />
<URI_Delete uri="/sitemap.xml" />


<!--
================================
<URI_Delete_All />

Description:
	Deletes all of the URIs for a given entity (page, category, product, or feed)
================================
-->
<URI_Delete_All page_code="ABUS" />
<URI_Delete_All category_code="clothing" />
<URI_Delete_All product_code="t-shirt" />
<URI_Delete_All feed_code="sitemap" />

以上是关于xml Miva - URI添加,删除和删除所有XML配置的主要内容,如果未能解决你的问题,请参考以下文章

xml SD4 Miva9更改==如果他们没有使用MIVA9优惠券,请删除优惠券==

xml SD4 Miva9更改==如果他们没有使用MIVA9优惠券,请删除优惠券==

xml mvdo uri / miva

xml Miva - URI的类别级联列表

xml Miva - 使用Sebenza模板模块进行URI管理

xml Miva - 在URI模板中加载自定义字段