Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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