Reverts r1752863, once again I applied a patch when moving SeoConfig.xml to e-commerce for OFBIZ-6125. I should have moved the file myself locally and committed directly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1755032 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,116 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<seo-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../dtd/SeoConfig.xsd">
|
||||
<regexpifmatch>^.*/.*$</regexpifmatch>
|
||||
|
||||
<category-url>
|
||||
<value>enable</value>
|
||||
<!-- enable/disable
|
||||
1. if enable, the product seo url will be /product-name-product-id.html or /category-name-product-name-product-id.html
|
||||
2. if disable, the CatalogUrlServlet.makeCatalogUrl will be used -->
|
||||
<allowed-context-paths>/:/ecomseo</allowed-context-paths>
|
||||
<!-- if category-url is enabled, only context paths listed here will be allowed to use the new seo transformers -->
|
||||
<category-name>disable</category-name>
|
||||
<!-- enable/disable
|
||||
1. if enable, the product seo url will be /category-name-product-name-product-id.html
|
||||
2. if disable, the product seo url will be /product-name-product-id.html -->
|
||||
<category-url-suffix>.html</category-url-suffix>
|
||||
<!-- suffix to add to the product seo url -->
|
||||
</category-url>
|
||||
|
||||
<jsessionid>
|
||||
<anonymous>
|
||||
<value>disable</value>
|
||||
<!-- enable/disable
|
||||
1. when disable, the seo url patterns that contains jsessionid will be applied;
|
||||
2. when enable, the seo url patterns that contains jsessionid will be skipped -->
|
||||
</anonymous>
|
||||
<user>
|
||||
<value>disable</value>
|
||||
<!-- enable/disable
|
||||
1. when disable, the url-patterns under exceptions will be used to skip the seo url patterns that contains jsessionid;
|
||||
2. when enable, the seo url patterns that contains jsessionid will be skipped -->
|
||||
<exceptions>
|
||||
<url-pattern>^.*/(keywordsearch|logout).*$</url-pattern>
|
||||
<!-- sample: ^.*/(keywordsearch|logout).*$ -->
|
||||
</exceptions>
|
||||
</user>
|
||||
</jsessionid>
|
||||
|
||||
<url-configs>
|
||||
<url-config>
|
||||
<description>sample: remove jsessionid</description>
|
||||
<url-pattern>^(.*);jsessionid=(.*)jvm[1-9](.*)$</url-pattern>
|
||||
<seo>
|
||||
<replacement>$1$3</replacement>
|
||||
</seo>
|
||||
<forward>
|
||||
<replacement>$1$3</replacement>
|
||||
<responsecode>301</responsecode>
|
||||
</forward>
|
||||
</url-config>
|
||||
|
||||
<url-config>
|
||||
<description>sample: remove /ecomseo/main</description>
|
||||
<url-pattern>^/ecomseo/main$</url-pattern>
|
||||
<seo>
|
||||
<replacement>/ecomseo/</replacement>
|
||||
</seo>
|
||||
<forward>
|
||||
<replacement>/ecomseo/</replacement>
|
||||
<responsecode>301</responsecode>
|
||||
</forward>
|
||||
</url-config>
|
||||
|
||||
<url-config>
|
||||
<description>sample: remove /main</description>
|
||||
<url-pattern>^/main$</url-pattern>
|
||||
<seo>
|
||||
<replacement>/</replacement>
|
||||
</seo>
|
||||
<forward>
|
||||
<replacement>/</replacement>
|
||||
<responsecode>301</responsecode>
|
||||
</forward>
|
||||
</url-config>
|
||||
</url-configs>
|
||||
|
||||
<char-filters>
|
||||
<char-filter>
|
||||
<character-pattern>\u00fc</character-pattern>
|
||||
<replacement>ue</replacement>
|
||||
</char-filter>
|
||||
<char-filter>
|
||||
<character-pattern>\u00e4</character-pattern>
|
||||
<replacement>ae</replacement>
|
||||
</char-filter>
|
||||
<char-filter>
|
||||
<character-pattern>\u00f6</character-pattern>
|
||||
<replacement>oe</replacement>
|
||||
</char-filter>
|
||||
<char-filter>
|
||||
<character-pattern>\u00df</character-pattern>
|
||||
<replacement>ss</replacement>
|
||||
</char-filter>
|
||||
<char-filter>
|
||||
<character-pattern>\\+</character-pattern>
|
||||
<replacement>und</replacement>
|
||||
</char-filter>
|
||||
<char-filter>
|
||||
<character-pattern>\u0026</character-pattern>
|
||||
<replacement>und</replacement>
|
||||
</char-filter>
|
||||
<char-filter>
|
||||
<character-pattern>è</character-pattern>
|
||||
<replacement>e</replacement>
|
||||
</char-filter>
|
||||
<!-- please keep the following 2 filters, don't remove them -->
|
||||
<char-filter>
|
||||
<character-pattern>[^A-Za-z0-9+-]</character-pattern>
|
||||
<replacement>-</replacement>
|
||||
</char-filter>
|
||||
<char-filter>
|
||||
<character-pattern>-{2,}</character-pattern>
|
||||
<replacement>-</replacement>
|
||||
</char-filter>
|
||||
</char-filters>
|
||||
</seo-config>
|
||||
Reference in New Issue
Block a user