我有url重写,使用config.xml创建,如下所示:
<saunas_cities>
<from><![CDATA[#^/saunas/cities(.*)#]]></from>
<to><![CDATA[/companies/catalog/cities/$1/]]></to>
<complete>0</complete>
</saunas_cities>
有没有办法在模板文件中获得重写的网址(www.site.com/saunas/sities.html)
?
答案 0 :(得分:-1)
我已经重写了checkout cartcontroller
<global>
<rewrite>
<customcart>
<from><![CDATA[#^/checkout/cart/#]]></from>
<to>/customcart/index/</to>
</customcart>
</rewrite>
</global>