I want to rewrite /custom
link from /catalogsearch/result/?q=some&attr=value
for this I have added below code in my module config.xml
...
<rewrite>
<mymodule>
<from><![CDATA[/custom/]]></from>
<to><![CDATA[catalogsearch/result/index/q/some/attr/value/$1]]></to>
<complete>1</complete>
</mymodule>
</rewrite>
...
From above code url /custom
showing content of search page, but the other url including custom
also rewritten from above code. for example /custom-page
or custom-page1
.
How to rewrite exact url?