<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ZNJACK Prestashop &#38; PHP Architect &#187; prestashop</title>
	<atom:link href="http://www.znjack.com/category/prestashop/feed" rel="self" type="application/rss+xml" />
	<link>http://www.znjack.com</link>
	<description>The software architect is the technical driving force behind the project, not a visionary or dreamer.</description>
	<lastBuildDate>Mon, 05 Sep 2011 05:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>prestashop 1.4.4的lighttpd rewrite规则</title>
		<link>http://www.znjack.com/prestashop-1-4-4%e7%9a%84lighttpd-rewrite%e8%a7%84%e5%88%99.html,334</link>
		<comments>http://www.znjack.com/prestashop-1-4-4%e7%9a%84lighttpd-rewrite%e8%a7%84%e5%88%99.html,334#comments</comments>
		<pubDate>Tue, 02 Aug 2011 02:58:46 +0000</pubDate>
		<dc:creator>znjack</dc:creator>
				<category><![CDATA[prestashop]]></category>

		<guid isPermaLink="false">http://www.znjack.com/?p=334</guid>
		<description><![CDATA[由于prestashop 1.4.3更新了一个新的“文件系统”，将图片文件分文件夹存放，为了同时兼容两种的文件存放方式，需要更改重写规则 url.rewrite-once = &#40; &#34;^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$&#34; =&#62; &#34;/img/p/$1-$2$3.jpg&#34;, &#34;^/([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$&#34; =&#62; &#34;/img/p/$1-$2.jpg&#34;, &#34;^/([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&#34; =&#62; &#34;/img/p/$1/$1$2.jpg&#34;, &#34;^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&#34; =&#62; &#34;/img/p/$1/$2/$1$2$3.jpg&#34;, &#34;^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&#34; =&#62; &#34;/img/p/$1/$2/$3/$1$2$3$4.jpg&#34;, &#34;^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&#34; =&#62; &#34;/img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg&#34;, &#34;^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&#34; =&#62; &#34;/img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg&#34;, &#34;^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&#34; =&#62; &#34;/img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg&#34;, &#34;^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&#34; =&#62; &#34;/img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg&#34;, &#34;^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&#34; =&#62; &#34;/img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg&#34;, &#160; &#160; &#34;^/([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$&#34; =&#62; &#34;/img/c/$1$2.jpg&#34;, &#34;^/lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&#34; =&#62; &#34;/product.php?id_product=$3&#38;isolang;=$1$6&#34; , &#34;^/lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&#34; =&#62;&#34;/product.php?id_product=$2&#38;isolang;=$1&#38;$4&#34;, &#160; &#34;^/lang-([a-z]{2})/content/category/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&#34; =&#62;&#34;/cms.php?id_cms_category=$2&#38;isolang;=$1&#38;$5&#34; , &#160; &#34;^/lang-([a-z]{2})/content/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&#34; =&#62;&#34;/cms.php?id_cms=$2&#38;isolang;=$1&#38;$4&#34;, &#34;^/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&#34; =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>由于prestashop 1.4.3更新了一个新的“文件系统”，将图片文件分文件夹存放，为了同时兼容两种的文件存放方式，需要更改重写规则</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">url<span style="color: #339933;">.</span>rewrite<span style="color: #339933;">-</span>once <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">&quot;^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/p/<span style="color: #006699; font-weight: bold;">$1</span>-<span style="color: #006699; font-weight: bold;">$2</span><span style="color: #006699; font-weight: bold;">$3</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/p/<span style="color: #006699; font-weight: bold;">$1</span>-<span style="color: #006699; font-weight: bold;">$2</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/p/<span style="color: #006699; font-weight: bold;">$1</span>/<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$2</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/p/<span style="color: #006699; font-weight: bold;">$1</span>/<span style="color: #006699; font-weight: bold;">$2</span>/<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$2</span><span style="color: #006699; font-weight: bold;">$3</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/p/<span style="color: #006699; font-weight: bold;">$1</span>/<span style="color: #006699; font-weight: bold;">$2</span>/<span style="color: #006699; font-weight: bold;">$3</span>/<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$2</span><span style="color: #006699; font-weight: bold;">$3</span><span style="color: #006699; font-weight: bold;">$4</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/p/<span style="color: #006699; font-weight: bold;">$1</span>/<span style="color: #006699; font-weight: bold;">$2</span>/<span style="color: #006699; font-weight: bold;">$3</span>/<span style="color: #006699; font-weight: bold;">$4</span>/<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$2</span><span style="color: #006699; font-weight: bold;">$3</span><span style="color: #006699; font-weight: bold;">$4</span><span style="color: #006699; font-weight: bold;">$5</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/p/<span style="color: #006699; font-weight: bold;">$1</span>/<span style="color: #006699; font-weight: bold;">$2</span>/<span style="color: #006699; font-weight: bold;">$3</span>/<span style="color: #006699; font-weight: bold;">$4</span>/<span style="color: #006699; font-weight: bold;">$5</span>/<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$2</span><span style="color: #006699; font-weight: bold;">$3</span><span style="color: #006699; font-weight: bold;">$4</span><span style="color: #006699; font-weight: bold;">$5</span><span style="color: #006699; font-weight: bold;">$6</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/p/<span style="color: #006699; font-weight: bold;">$1</span>/<span style="color: #006699; font-weight: bold;">$2</span>/<span style="color: #006699; font-weight: bold;">$3</span>/<span style="color: #006699; font-weight: bold;">$4</span>/<span style="color: #006699; font-weight: bold;">$5</span>/<span style="color: #006699; font-weight: bold;">$6</span>/<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$2</span><span style="color: #006699; font-weight: bold;">$3</span><span style="color: #006699; font-weight: bold;">$4</span><span style="color: #006699; font-weight: bold;">$5</span><span style="color: #006699; font-weight: bold;">$6</span><span style="color: #006699; font-weight: bold;">$7</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/p/<span style="color: #006699; font-weight: bold;">$1</span>/<span style="color: #006699; font-weight: bold;">$2</span>/<span style="color: #006699; font-weight: bold;">$3</span>/<span style="color: #006699; font-weight: bold;">$4</span>/<span style="color: #006699; font-weight: bold;">$5</span>/<span style="color: #006699; font-weight: bold;">$6</span>/<span style="color: #006699; font-weight: bold;">$7</span>/<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$2</span><span style="color: #006699; font-weight: bold;">$3</span><span style="color: #006699; font-weight: bold;">$4</span><span style="color: #006699; font-weight: bold;">$5</span><span style="color: #006699; font-weight: bold;">$6</span><span style="color: #006699; font-weight: bold;">$7</span><span style="color: #006699; font-weight: bold;">$8</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/p/<span style="color: #006699; font-weight: bold;">$1</span>/<span style="color: #006699; font-weight: bold;">$2</span>/<span style="color: #006699; font-weight: bold;">$3</span>/<span style="color: #006699; font-weight: bold;">$4</span>/<span style="color: #006699; font-weight: bold;">$5</span>/<span style="color: #006699; font-weight: bold;">$6</span>/<span style="color: #006699; font-weight: bold;">$7</span>/<span style="color: #006699; font-weight: bold;">$8</span>/<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$2</span><span style="color: #006699; font-weight: bold;">$3</span><span style="color: #006699; font-weight: bold;">$4</span><span style="color: #006699; font-weight: bold;">$5</span><span style="color: #006699; font-weight: bold;">$6</span><span style="color: #006699; font-weight: bold;">$7</span><span style="color: #006699; font-weight: bold;">$8</span><span style="color: #006699; font-weight: bold;">$9</span>.jpg&quot;</span><span style="color: #339933;">,</span>
&nbsp;
&nbsp;
	<span style="color: #0000ff;">&quot;^/([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/c/<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$2</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/product.php?id_product=<span style="color: #006699; font-weight: bold;">$3</span>&amp;isolang;=<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$6</span>&quot;</span> <span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/product.php?id_product=<span style="color: #006699; font-weight: bold;">$2</span>&amp;isolang;=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #0000ff;">&quot;^/lang-([a-z]{2})/content/category/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&quot;</span>  <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/cms.php?id_cms_category=<span style="color: #006699; font-weight: bold;">$2</span>&amp;isolang;=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$5</span>&quot;</span> <span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #0000ff;">&quot;^/lang-([a-z]{2})/content/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/cms.php?id_cms=<span style="color: #006699; font-weight: bold;">$2</span>&amp;isolang;=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/product.php?id_product=<span style="color: #006699; font-weight: bold;">$2</span>&amp;<span style="color: #006699; font-weight: bold;">$5</span>&quot;</span> <span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/product.php?id_product=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/category.php?id_category=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span> <span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/category.php?id_category=<span style="color: #006699; font-weight: bold;">$2</span>&amp;isolang;=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$5</span>&quot;</span> <span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #0000ff;">&quot;^/content/category/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/cms.php?id_cms_category=<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span> <span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #0000ff;">&quot;^/content/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/cms.php?id_cms=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span> <span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9]+)__([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/supplier.php?id_supplier=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span> <span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9]+)_([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/manufacturer.php?id_manufacturer=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/lang-([a-z]{2})/(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/index.php?isolang=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$2</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/address(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/address.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/addresses(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/addresses.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/authentication(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/authentication.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/cart(\.php)?(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/cart.php<span style="color: #006699; font-weight: bold;">$2</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/discount(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/discount.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/guest-tracking(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/guest-tracking.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/order-history(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/history.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/identity(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/identity.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/my-account(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/my-account.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/order(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/order.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/order-follow(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/order-follow.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/quick-order(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/order-opc.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/password-recovery(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/password.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/order-slip(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/order-slip.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/search(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/search.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/contact-us(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/contact-form.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/new-products(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/new-products.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/page-not-found(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/404.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/sitemap$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/sitemap.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/best-sales(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/best-sales.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/prices-drop(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/prices-drop.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/stores(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/stores.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span>
&nbsp;
<span style="color: #009900;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.znjack.com/prestashop-1-4-4%e7%9a%84lighttpd-rewrite%e8%a7%84%e5%88%99.html,334/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OMG,升级到prestashop1.4.2.5后不能填写地址了</title>
		<link>http://www.znjack.com/omg%e5%8d%87%e7%ba%a7%e5%88%b0prestashop1-4-2-5%e5%90%8e%e4%b8%8d%e8%83%bd%e5%a1%ab%e5%86%99%e5%9c%b0%e5%9d%80%e4%ba%86.html,328</link>
		<comments>http://www.znjack.com/omg%e5%8d%87%e7%ba%a7%e5%88%b0prestashop1-4-2-5%e5%90%8e%e4%b8%8d%e8%83%bd%e5%a1%ab%e5%86%99%e5%9c%b0%e5%9d%80%e4%ba%86.html,328#comments</comments>
		<pubDate>Thu, 16 Jun 2011 03:53:06 +0000</pubDate>
		<dc:creator>znjack</dc:creator>
				<category><![CDATA[prestashop]]></category>
		<category><![CDATA[单步支付]]></category>
		<category><![CDATA[地址]]></category>

		<guid isPermaLink="false">http://www.znjack.com/?p=328</guid>
		<description><![CDATA[从1.4.0或以前版本升级到1.4.2.5最新版本后，发现单步支付中不能填写地址了，没有地址，国家等选项了。 这是因为prestashop 1.4.2.5新增加了针对国家的“地址格式”功能，升级的时候”ps_address_format”表为空没有任何地址造成的。 解决办法，打开Back Office 》 Shipping 》 Countries，找到你的默认国家，修改。 点击Use a default layout，或者选择需要的模板。]]></description>
			<content:encoded><![CDATA[<p>从1.4.0或以前版本升级到1.4.2.5最新版本后，发现单步支付中不能填写地址了，没有地址，国家等选项了。</p>
<p>这是因为prestashop 1.4.2.5新增加了针对国家的“地址格式”功能，升级的时候”ps_address_format”表为空没有任何地址造成的。</p>
<p>解决办法，打开Back Office 》 Shipping 》 Countries，找到你的默认国家，修改。</p>
<p><a href="http://www.znjack.com/wp-content/uploads/2011/06/1.jpg"><img class="alignnone size-medium wp-image-329" title="1" src="http://www.znjack.com/wp-content/uploads/2011/06/1-300x73.jpg" alt="" width="300" height="73" /></a></p>
<p>点击Use a default layout，或者选择需要的模板。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.znjack.com/omg%e5%8d%87%e7%ba%a7%e5%88%b0prestashop1-4-2-5%e5%90%8e%e4%b8%8d%e8%83%bd%e5%a1%ab%e5%86%99%e5%9c%b0%e5%9d%80%e4%ba%86.html,328/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dreamweaver cs5 正则替换prestashop google base feed</title>
		<link>http://www.znjack.com/dreamweaver-cs5-%e6%ad%a3%e5%88%99%e6%9b%bf%e6%8d%a2.html,324</link>
		<comments>http://www.znjack.com/dreamweaver-cs5-%e6%ad%a3%e5%88%99%e6%9b%bf%e6%8d%a2.html,324#comments</comments>
		<pubDate>Thu, 28 Apr 2011 05:41:03 +0000</pubDate>
		<dc:creator>znjack</dc:creator>
				<category><![CDATA[prestashop]]></category>
		<category><![CDATA[dreamweaver]]></category>

		<guid isPermaLink="false">http://www.znjack.com/?p=324</guid>
		<description><![CDATA[应用情景： 打开了一个prestashop的google base feed，想要去提交给W3C Link Checker来验证。 解决方式： 用dreamweaver打开feed xml文件。 使用 &#60;/link&#62;([\s\S]+?)&#60;link&#62;替换为\r\n 来去除大部分的xml。 再把头部和尾部的xml删除。 使用 (http(.+?)\.html)+ 替换为 &#60;a href=”$1&#8243;&#62;$1&#60;/a&#62; 来把网址变成链接 最后，保存为html文件传到服务器上，就可以使用w3c link checker服务了。]]></description>
			<content:encoded><![CDATA[<p><strong>应用情景：</strong></p>
<p>打开了一个prestashop的google base feed，想要去提交给W3C Link Checker来验证。</p>
<p><strong>解决方式：</strong></p>
<p>用dreamweaver打开feed xml文件。</p>
<p>使用</p>
<p>&lt;/link&gt;([\s\S]+?)&lt;link&gt;替换为\r\n</p>
<p>来去除大部分的xml。</p>
<p>再把头部和尾部的xml删除。</p>
<p>使用</p>
<p>(http(.+?)\.html)+ 替换为 &lt;a href=”$1&#8243;&gt;$1&lt;/a&gt;</p>
<p>来把网址变成链接</p>
<p>最后，保存为html文件传到服务器上，就可以使用w3c link checker服务了。</p>
<p><a href="http://www.znjack.com/wp-content/uploads/2011/04/11.jpg"><img class="alignnone size-medium wp-image-325" title="1" src="http://www.znjack.com/wp-content/uploads/2011/04/11-300x169.jpg" alt="" width="300" height="169" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.znjack.com/dreamweaver-cs5-%e6%ad%a3%e5%88%99%e6%9b%bf%e6%8d%a2.html,324/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>prestashop 1.4问题修改：sitemap</title>
		<link>http://www.znjack.com/prestashop-1-4%e9%97%ae%e9%a2%98%e4%bf%ae%e6%94%b9%ef%bc%9asitemap.html,322</link>
		<comments>http://www.znjack.com/prestashop-1-4%e9%97%ae%e9%a2%98%e4%bf%ae%e6%94%b9%ef%bc%9asitemap.html,322#comments</comments>
		<pubDate>Thu, 14 Apr 2011 15:51:04 +0000</pubDate>
		<dc:creator>znjack</dc:creator>
				<category><![CDATA[prestashop]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[prestashop 1.4]]></category>
		<category><![CDATA[sitemap]]></category>

		<guid isPermaLink="false">http://www.znjack.com/?p=322</guid>
		<description><![CDATA[1.2中sitemap就有问题，1.4依然有问题，只不过问题不同了而已。 bug： 如果你只有一种语言，生成的sitemap中的首页后还是有语言的地址，这样给google看到的结果就是首页是404。 例如http://www.yourdomin.com/en/ 解决： 修改moudles/gsitemap/gsitemap.php第92行，由原来的 if &#40;Configuration::get&#40;'PS_REWRITING_SETTINGS'&#41;&#41; 改为 if &#40;Configuration::get&#40;'PS_REWRITING_SETTINGS'&#41; &#38;&#38; count&#40;$langs&#41; &#62; 1&#41; 也放了修改好的上来]]></description>
			<content:encoded><![CDATA[<p>1.2中sitemap就有问题，1.4依然有问题，只不过问题不同了而已。</p>
<h3>bug：</h3>
<p>如果你只有一种语言，生成的sitemap中的首页后还是有语言的地址，这样给google看到的结果就是首页是404。<br />
例如http://www.yourdomin.com/en/</p>
<h3>解决：</h3>
<p>修改moudles/gsitemap/gsitemap.php第92行，由原来的</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>Configuration<span style="color: #339933;">::</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'PS_REWRITING_SETTINGS'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>改为</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>Configuration<span style="color: #339933;">::</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'PS_REWRITING_SETTINGS'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langs</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>也放了修改好的上来<a class="downloadlink" href="http://www.znjack.com/wp-content/plugins/download-monitor/download.php?id=16" title=" downloaded 206 times" >gsitemap bug 1.4.0.7 (206)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.znjack.com/prestashop-1-4%e9%97%ae%e9%a2%98%e4%bf%ae%e6%94%b9%ef%bc%9asitemap.html,322/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>prestashop 1.4问题修改：PayPal不允许从您所居住的国家或地区运送到您指定为目的地的国家或地区</title>
		<link>http://www.znjack.com/prestashop-1-4%e9%97%ae%e9%a2%98%e4%bf%ae%e6%94%b9%ef%bc%9apaypal%e4%b8%8d%e5%85%81%e8%ae%b8%e4%bb%8e%e6%82%a8%e6%89%80%e5%b1%85%e4%bd%8f%e7%9a%84%e5%9b%bd%e5%ae%b6%e6%88%96%e5%9c%b0%e5%8c%ba%e8%bf%90.html,320</link>
		<comments>http://www.znjack.com/prestashop-1-4%e9%97%ae%e9%a2%98%e4%bf%ae%e6%94%b9%ef%bc%9apaypal%e4%b8%8d%e5%85%81%e8%ae%b8%e4%bb%8e%e6%82%a8%e6%89%80%e5%b1%85%e4%bd%8f%e7%9a%84%e5%9b%bd%e5%ae%b6%e6%88%96%e5%9c%b0%e5%8c%ba%e8%bf%90.html,320#comments</comments>
		<pubDate>Sun, 10 Apr 2011 13:35:56 +0000</pubDate>
		<dc:creator>znjack</dc:creator>
				<category><![CDATA[prestashop]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[prestashop1.4]]></category>

		<guid isPermaLink="false">http://www.znjack.com/?p=320</guid>
		<description><![CDATA[PayPal不允许从您所居住的国家或地区运送到您指定为目的地的国家或地区，英文是Paypal does not allow your country of residence to ship to the country you wish to。 是由于prestashop 1.4的新paypal模块自动设置了address_override选项。把modules/paypal/redirect.tpl的36行和35行改成 &#60;input type=&#34;hidden&#34; name=&#34;address_override&#34; value=&#34;0&#34; /&#62;]]></description>
			<content:encoded><![CDATA[<p>PayPal不允许从您所居住的国家或地区运送到您指定为目的地的国家或地区，英文是Paypal does not allow your country of residence to ship to the country you wish to。<br />
是由于prestashop 1.4的新paypal模块自动设置了address_override选项。把modules/paypal/redirect.tpl的36行和35行改成</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;input type=&quot;hidden&quot; name=&quot;address_override&quot; value=&quot;0&quot; /&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.znjack.com/prestashop-1-4%e9%97%ae%e9%a2%98%e4%bf%ae%e6%94%b9%ef%bc%9apaypal%e4%b8%8d%e5%85%81%e8%ae%b8%e4%bb%8e%e6%82%a8%e6%89%80%e5%b1%85%e4%bd%8f%e7%9a%84%e5%9b%bd%e5%ae%b6%e6%88%96%e5%9c%b0%e5%8c%ba%e8%bf%90.html,320/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>prestashop 1.4图片上传bug：Fatal error (StockMvt -&gt; id_stock_mvt_reason = -1)</title>
		<link>http://www.znjack.com/prestashop-1-4%e5%9b%be%e7%89%87%e4%b8%8a%e4%bc%a0bug%ef%bc%9afatal-error-stockmvt-id_stock_mvt_reason-1.html,312</link>
		<comments>http://www.znjack.com/prestashop-1-4%e5%9b%be%e7%89%87%e4%b8%8a%e4%bc%a0bug%ef%bc%9afatal-error-stockmvt-id_stock_mvt_reason-1.html,312#comments</comments>
		<pubDate>Sun, 10 Apr 2011 10:54:31 +0000</pubDate>
		<dc:creator>znjack</dc:creator>
				<category><![CDATA[prestashop]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[prestashop 1.4]]></category>
		<category><![CDATA[图片上传]]></category>

		<guid isPermaLink="false">http://www.znjack.com/?p=312</guid>
		<description><![CDATA[这就是prestashop 1.4图片上传bug “Fatal error (StockMvt -&#62; id_stock_mvt_reason = -1)”。bug反馈在http://forge.prestashop.com/browse/PSCFI-995。 解决方法是，打开ps_stock_mvt_reason表，取消主键id_stock_mvt_reason的auto increment，然后 UPDATE `ps_stock_mvt_reason` SET `id_stock_mvt_reason` = '0', `sign` = '1' WHERE `ps_stock_mvt_reason`.`id_stock_mvt_reason` =4 如果改完发现问题如故，请打开/关闭缓存至少1次。]]></description>
			<content:encoded><![CDATA[<p>这就是prestashop 1.4图片上传bug “Fatal error (StockMvt -&gt; id_stock_mvt_reason = -1)”。bug反馈在http://forge.prestashop.com/browse/PSCFI-995。<br />
<a href="http://www.znjack.com/wp-content/uploads/2011/04/1.jpg"><img class="alignnone size-full wp-image-313" title="1" src="http://www.znjack.com/wp-content/uploads/2011/04/1.jpg" alt="" width="299" height="95" /></a></p>
<p>解决方法是，打开ps_stock_mvt_reason表，取消主键id_stock_mvt_reason的auto increment，然后</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`ps_stock_mvt_reason`</span> <span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #ff0000;">`id_stock_mvt_reason`</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span>
<span style="color: #ff0000;">`sign`</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`ps_stock_mvt_reason`</span><span style="color: #66cc66;">.</span><span style="color: #ff0000;">`id_stock_mvt_reason`</span> <span style="color: #66cc66;">=</span><span style="color: #cc66cc;">4</span></pre></div></div>

<p>如果改完发现问题如故，请打开/关闭缓存至少1次。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.znjack.com/prestashop-1-4%e5%9b%be%e7%89%87%e4%b8%8a%e4%bc%a0bug%ef%bc%9afatal-error-stockmvt-id_stock_mvt_reason-1.html,312/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>prestashop 1.4后台模块bug</title>
		<link>http://www.znjack.com/prestashop-1-4%e5%90%8e%e5%8f%b0%e6%a8%a1%e5%9d%97bug.html,302</link>
		<comments>http://www.znjack.com/prestashop-1-4%e5%90%8e%e5%8f%b0%e6%a8%a1%e5%9d%97bug.html,302#comments</comments>
		<pubDate>Sat, 09 Apr 2011 02:34:26 +0000</pubDate>
		<dc:creator>znjack</dc:creator>
				<category><![CDATA[prestashop]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[prestashop 1.4]]></category>
		<category><![CDATA[模块]]></category>

		<guid isPermaLink="false">http://www.znjack.com/?p=302</guid>
		<description><![CDATA[有时候点击一个模块的配置，页面上会显示“Module uninstalled successfully”。这时候的模块一般显示已安装，但是如果去uninstall它，它又会显示模块没有安装。这个问题出现的原因还在研究，解决办法是：删除ps_modules表中对应的模块。 DELETE FROM `ps_module` WHERE `name` = '你的模块名称' 注意这里的模块名称是模块的class名称，不是显示在界面上的那个。比如是blockcategories而不是Categories block。配置等信息不会丢。]]></description>
			<content:encoded><![CDATA[<p>有时候点击一个模块的配置，页面上会显示“Module uninstalled successfully”。这时候的模块一般显示已安装，但是如果去uninstall它，它又会显示模块没有安装。这个问题出现的原因还在研究，解决办法是：删除ps_modules表中对应的模块。</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">DELETE</span> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #ff0000;">`ps_module`</span> <span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`name`</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'你的模块名称'</span></pre></div></div>

<p>注意这里的模块名称是模块的class名称，不是显示在界面上的那个。比如是blockcategories而不是Categories block。配置等信息不会丢。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.znjack.com/prestashop-1-4%e5%90%8e%e5%8f%b0%e6%a8%a1%e5%9d%97bug.html,302/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>prestashop 1.4的lighttpd的rewrite规则</title>
		<link>http://www.znjack.com/prestashop%e7%9a%84lighttpd%e7%9a%84rewrite%e8%a7%84%e5%88%99.html,294</link>
		<comments>http://www.znjack.com/prestashop%e7%9a%84lighttpd%e7%9a%84rewrite%e8%a7%84%e5%88%99.html,294#comments</comments>
		<pubDate>Wed, 06 Apr 2011 08:06:26 +0000</pubDate>
		<dc:creator>znjack</dc:creator>
				<category><![CDATA[prestashop]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[prestashop 1.4]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.znjack.com/?p=294</guid>
		<description><![CDATA[根据默认的规则转换的，如果有不一样的地方，需要自己配置。 url.rewrite-once = &#40; &#34;^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$&#34; =&#62; &#34;/img/p/$1-$2$3.jpg&#34;, &#34;^/([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$&#34; =&#62; &#34;/img/c/$1$2.jpg&#34;, &#34;^/lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&#34; =&#62; &#34;/product.php?id_product=$3&#38;isolang;=$1$6&#34; , &#34;^/lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&#34; =&#62;&#34;/product.php?id_product=$2&#38;isolang;=$1&#38;$4&#34;, &#34;^/lang-([a-z]{2})/content/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&#34; =&#62;&#34;/cms.php?id_cms=$2&#38;isolang;=$1&#38;$4&#34;, &#160; &#34;^/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&#34; =&#62; &#34;/product.php?id_product=$2&#38;$5&#34; , &#34;^/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&#34; =&#62;&#34;/product.php?id_product=$1&#38;$4&#34;, &#160; &#160; &#34;^/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&#34; =&#62;&#34;/category.php?id_category=$1&#38;$4&#34; , &#34;^/lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&#34; =&#62;&#34;/category.php?id_category=$2&#38;isolang;=$1&#38;$5&#34; , &#34;^/content/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&#34; =&#62;&#34;/cms.php?id_cms=$1&#38;$4&#34; , &#34;^/([0-9]+)__([a-zA-Z0-9-]*)(\?(.*))?&#34; =&#62;&#34;/supplier.php?id_supplier=$1&#38;$4&#34; , &#34;^/([0-9]+)_([a-zA-Z0-9-]*)(\?(.*))?&#34; =&#62;&#34;/manufacturer.php?id_manufacturer=$1&#38;$4&#34;, &#160; &#34;^/lang-([a-z]{2})/(\?(.*))?&#34; =&#62; &#34;/index.php?isolang=$1&#38;$2&#34;, &#160; &#34;^/address(\?(.*))?&#34; =&#62; &#34;/address.php$1&#34;, &#34;^/addresses(\?(.*))?&#34; =&#62; &#34;/addresses.php$1&#34;, &#34;^/authentication(\?(.*))?&#34; =&#62; &#34;/authentication.php$1&#34;, [...]]]></description>
			<content:encoded><![CDATA[<p>根据默认的规则转换的，如果有不一样的地方，需要自己配置。</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">url<span style="color: #339933;">.</span>rewrite<span style="color: #339933;">-</span>once <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">&quot;^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/p/<span style="color: #006699; font-weight: bold;">$1</span>-<span style="color: #006699; font-weight: bold;">$2</span><span style="color: #006699; font-weight: bold;">$3</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/img/c/<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$2</span>.jpg&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/product.php?id_product=<span style="color: #006699; font-weight: bold;">$3</span>&amp;isolang;=<span style="color: #006699; font-weight: bold;">$1</span><span style="color: #006699; font-weight: bold;">$6</span>&quot;</span> <span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/product.php?id_product=<span style="color: #006699; font-weight: bold;">$2</span>&amp;isolang;=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/lang-([a-z]{2})/content/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/cms.php?id_cms=<span style="color: #006699; font-weight: bold;">$2</span>&amp;isolang;=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #0000ff;">&quot;^/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/product.php?id_product=<span style="color: #006699; font-weight: bold;">$2</span>&amp;<span style="color: #006699; font-weight: bold;">$5</span>&quot;</span> <span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/product.php?id_product=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span><span style="color: #339933;">,</span>
&nbsp;
&nbsp;
	<span style="color: #0000ff;">&quot;^/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/category.php?id_category=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span> <span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/category.php?id_category=<span style="color: #006699; font-weight: bold;">$2</span>&amp;isolang;=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$5</span>&quot;</span> <span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/content/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/cms.php?id_cms=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span> <span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9]+)__([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/supplier.php?id_supplier=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span> <span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/([0-9]+)_([a-zA-Z0-9-]*)(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;/manufacturer.php?id_manufacturer=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$4</span>&quot;</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #0000ff;">&quot;^/lang-([a-z]{2})/(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/index.php?isolang=<span style="color: #006699; font-weight: bold;">$1</span>&amp;<span style="color: #006699; font-weight: bold;">$2</span>&quot;</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #0000ff;">&quot;^/address(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/address.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/addresses(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/addresses.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/authentication(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/authentication.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/cart(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/cart.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/discount(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/discount.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/guest-tracking(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/guest-tracking.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/order-history(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/order-history.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/identity(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/identity.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/my-account(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/my-account.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/order(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/order.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/order-follow(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/order-follow.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/quick-order(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/order-opc.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/password-recovery(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/password.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/order-slip(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/order-slip.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/search(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/search.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/contact-us(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/contact-form.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/new-products(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/new-products.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/page-not-found(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/404.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/sitemap$&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/sitemap.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/best-sales(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/best-sales.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/prices-drop(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/prices-drop.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;^/stores(\?(.*))?&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;/stores.php<span style="color: #006699; font-weight: bold;">$1</span>&quot;</span>
&nbsp;
<span style="color: #009900;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.znjack.com/prestashop%e7%9a%84lighttpd%e7%9a%84rewrite%e8%a7%84%e5%88%99.html,294/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>prestashop多页标题重复问题的修改</title>
		<link>http://www.znjack.com/prestashop%e5%a4%9a%e9%a1%b5%e6%a0%87%e9%a2%98%e9%87%8d%e5%a4%8d%e9%97%ae%e9%a2%98%e7%9a%84%e4%bf%ae%e6%94%b9.html,290</link>
		<comments>http://www.znjack.com/prestashop%e5%a4%9a%e9%a1%b5%e6%a0%87%e9%a2%98%e9%87%8d%e5%a4%8d%e9%97%ae%e9%a2%98%e7%9a%84%e4%bf%ae%e6%94%b9.html,290#comments</comments>
		<pubDate>Thu, 31 Mar 2011 02:26:56 +0000</pubDate>
		<dc:creator>znjack</dc:creator>
				<category><![CDATA[prestashop]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[标题]]></category>

		<guid isPermaLink="false">http://www.znjack.com/?p=290</guid>
		<description><![CDATA[这是对于prestashop seo方面的改动，在分类的第二页的标题和第一页是一样的，所以加了一个page 2这样的修改。 适用于prestashop 1.3.x版本。 $metaTags&#91;'meta_title'&#93; = $defaultValue.' - '.&#40;&#40;$_GET&#91;'p'&#93; &#62; 1&#41; ? 'Page '.$_GET&#91;'p'&#93; : '' &#41;.' - '.Configuration::get&#40;'PS_SHOP_NAME'&#41;; 在classes/tools.php 587行。]]></description>
			<content:encoded><![CDATA[<p>这是对于prestashop seo方面的改动，在分类的第二页的标题和第一页是一样的，所以加了一个page 2这样的修改。<br />
适用于prestashop 1.3.x版本。</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$metaTags</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'meta_title'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$defaultValue</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' - '</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'p'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">'Page '</span><span style="color: #339933;">.</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'p'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' - '</span><span style="color: #339933;">.</span>Configuration<span style="color: #339933;">::</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'PS_SHOP_NAME'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>在classes/tools.php 587行。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.znjack.com/prestashop%e5%a4%9a%e9%a1%b5%e6%a0%87%e9%a2%98%e9%87%8d%e5%a4%8d%e9%97%ae%e9%a2%98%e7%9a%84%e4%bf%ae%e6%94%b9.html,290/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>prestashop 1.4终极优化指南</title>
		<link>http://www.znjack.com/prestashop-1-4%e7%bb%88%e6%9e%81%e4%bc%98%e5%8c%96%e6%8c%87%e5%8d%97.html,255</link>
		<comments>http://www.znjack.com/prestashop-1-4%e7%bb%88%e6%9e%81%e4%bc%98%e5%8c%96%e6%8c%87%e5%8d%97.html,255#comments</comments>
		<pubDate>Sun, 27 Mar 2011 15:12:06 +0000</pubDate>
		<dc:creator>znjack</dc:creator>
				<category><![CDATA[prestashop]]></category>
		<category><![CDATA[prestashop 1.4]]></category>

		<guid isPermaLink="false">http://www.znjack.com/?p=255</guid>
		<description><![CDATA[加了终极2个字，是因为速度确实提升了400%。 $rss_links = array&#40;&#41;; $cache = dirname&#40;__FILE__&#41;.'/cache.serialize'; if&#40;file_exists&#40;$cache&#41; &#38;&#38; &#40;time&#40;&#41; - filemtime&#40;$cache&#41;&#41; &#60; 5000&#41; $contents = unserialize&#40;file_get_contents&#40;$cache&#41;&#41;; else $url &#38;&#38; &#40;$contents = @file_get_contents&#40;$url&#41;&#41;; &#160; if &#40;@$src = new XML_Feed_Parser&#40;$contents&#41;&#41;&#123; file_put_contents&#40;$cache, serialize&#40;$contents&#41;&#41;; for &#40;$i = 0; $i &#60; &#40;$nb ? $nb : 5&#41;; $i++&#41; if &#40;@$item = $src-&#62;getEntryByOffset&#40;$i&#41;&#41; $rss_links&#91;&#93; = array&#40;'title' =&#62; $item-&#62;title, 'url' =&#62; $item-&#62;link&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>加了终极2个字，是因为速度确实提升了400%。</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">		<span style="color: #000088;">$rss_links</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$cache</span> <span style="color: #339933;">=</span> <span style="color: #990000;">dirname</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/cache.serialize'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">file_exists</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cache</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #990000;">filemtime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cache</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">5000</span><span style="color: #009900;">&#41;</span>
			<span style="color: #000088;">$contents</span> <span style="color: #339933;">=</span> <span style="color: #990000;">unserialize</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cache</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">else</span>	
			<span style="color: #000088;">$url</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$contents</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #000088;">$src</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> XML_Feed_Parser<span style="color: #009900;">&#40;</span><span style="color: #000088;">$contents</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #990000;">file_put_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cache</span><span style="color: #339933;">,</span> <span style="color: #990000;">serialize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$contents</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$nb</span> ? <span style="color: #000088;">$nb</span> <span style="color: #339933;">:</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
				<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #000088;">$item</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$src</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getEntryByOffset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
					<span style="color: #000088;">$rss_links</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'url'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span></pre></div></div>

<p>这条优化建议是针对所有版本的，并非只有prestashop1.4。这段代码用以替换module中的blockrss文件夹中的blockrss.php141行开始到// Display smarty结束的部分。加了一个rss的缓存而已，但是官方显然没注意到这个问题，这个模板已经很多个版本没有改过了。</p>
<p>未完待续</p>
]]></content:encoded>
			<wfw:commentRss>http://www.znjack.com/prestashop-1-4%e7%bb%88%e6%9e%81%e4%bc%98%e5%8c%96%e6%8c%87%e5%8d%97.html,255/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

