Magento News
URL rewriting for Magento module
Hi,
I have created a New Module in Magento and named it as “article”. It has two Front end controllers index and article.
And in the article controller i have an action called “archives” to list the articles on the front end / website based on the archives. Everything is fine except the URL.
The Working URL right now is : [http://]mydemostore/article/article/archives/01/2011
What i actually need is http://mydemostore/article/archives/01/2011
I don’t want to have an extra “article” (the controller name)
I know since my module name and controller name are same i am getting this. If i would have placed my actions inside the indexcontroller, i would have got this done. But it was not working.
So what i need right now is I don’t want to move my actions from “article” to “index” controllers rather i just want to change
from
[http://]mydemostore/article/article/archives/01/2011 to
to
[http://]mydemostore/article/archives/01/2011
using Zend routing or basic PHP URL rewriting on .htaccess file.
Kindly help me how to get this done by using either of these two ways or both the ways.
Thanks a lot in advance for checking with my question !!!
URL rewriting for Magento module
Possibly Related Posts:
- Database query different results
- Menu highlight in magento under admin
- magento disable a banner on certain category pages or have a banner with multiple links
- Magento, using ACL for frontend. Possible?
- Magento IE-7 Fix In Windows XP
RSS Feed