Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rewrite url using config.xml

I'd created a module and the url for the same is something like:

http://magento.korenpub.com/designer/index/index/id/26/value/Joseph%20B.%20Soloveitchik

but I need to rewrite the url to

http://magento.korenpub.com/author/id/26/value/Joseph%20B.%20Soloveitchik

How can it be done with config.xml? I'd read this blog which describes such, but I'm unable to do it for my module.

like image 238
Mohammad Faisal Avatar asked Aug 04 '26 10:08

Mohammad Faisal


1 Answers

I'd been thinking it in more complicated way but its so simple

<global>
    <rewrite>
        <designer_url>
            <from><![CDATA[#^/author/id/#]]></from>
            <to><![CDATA[/designer/index/index/id/]]></to>
            <complete>1</complete>
        </designer_url>
    </rewrite>
</global>
like image 192
Mohammad Faisal Avatar answered Aug 06 '26 23:08

Mohammad Faisal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!