Magento Forum

   
Config.xml Rewrite statement
 
Gennaro
Jr. Member
 
Total Posts:  2
Joined:  2008-06-18
 

Hi guys,
consider this rewrite statement

...
<
from><![CDATA[#^/admin/catalog_product/save/(.*)$#]]></from>
<to>/custommodule/catalog_product/save/</to>
...

Is there a way to retrieve the backreference of the regular expression #^/admin/catalog_product/save/(.*)$# ?

<to>/custommodule/catalog_product/save/\$1</to>
doesn’t work nor i believe it’s supposed to work that way.

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Gennaro
Jr. Member
 
Total Posts:  2
Joined:  2008-06-18
 

solved.

<to>/custommodule/catalog_product/save/\${1}1</to>
works like a charm.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top