URL rewriting for Magento module

后端 未结 4 770
梦毁少年i
梦毁少年i 2021-02-10 15:49

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 ca

4条回答
  •  别那么骄傲
    2021-02-10 16:36

    Something like this in .htaccess

    RewriteEngine On
    RewriteRule ^(article/)* article/ [L]
    

    May remove duplicates, but I wouldn't opt for it

    A more general case for duplicates:

    RewriteEngine On
    RewriteRule ^([^/]+/)* $1 [L]
    

提交回复
热议问题