I created a new module in Magento and called it an “article”. It has two indexes and front controller articles.
And in the article controller, I have an action called “archives” to list articles on the front side / website based on archives. Everything is fine except the URL.
The working URL right now: [http: //] mydemostore / article / article / archives / 01/2011
I really need http: // mydemostore / article / archives / 01/2011
I do not want to have an additional "article" (controller name)
I know, since my module name and controller name are the same, I get this. If I put my actions in an indexcontroller, I would do that. But he did not work.
So, what I need right now, I do not want to move my actions from the "article" to the "index" controllers, but just want to change
of
[http: //] mydemostore / article / article / archives / 01/2011 to
to
[http: //] mydemostore / article / archives / 01/2011
using Zend routing or basic rewriting of PHP code in a .htaccess file.
Please help me how to do this using either of these two methods or both.
Thanks so much for checking my question !!!
source share