更改Magento联系人页面URL

Bla*_*azo 12 magento

如何将Magento联系人页面URL更改/contactscontact-us.html

谢谢你的建议.

clo*_*eek 20

  1. 目录菜单中,单击URL重写管理.
  2. 单击" 添加URL重写"按钮.
  3. 选择添加自定义类型.
  4. 输入ID路径目标路径的 "联系人" .
  5. 输入"contact-us.html"作为请求路径.
  6. 单击" 保存"按钮.


Dan*_*ris 13

"正确"的方法是创建一个类似于下面的小模块;

应用程序的/ etc /模块/ Organisation_Module.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Organisation_Module>
            <active>true</active>
            <codePool>local</codePool>
        </Organisation_Module>
    </modules>
</config> 
Run Code Online (Sandbox Code Playgroud)

和...

应用程序/代码/本地/组织/模块的/ etc/config.xml中

<?xml version="1.0"?>
<config>
    <modules>
        <Organisation_Module>
            <version>0.0.1</version>
        </Organisation_Module>
    </modules>
    <frontend>
        <routers>
            <contacts>
                <use>standard</use>
                <args>
                    <module>Mage_Contacts</module>
                    <frontName>contact-us.html</frontName>
                </args>
            </contacts>
        </routers>
    </frontend>
</config>
Run Code Online (Sandbox Code Playgroud)

上传你的文件,清除你的缓存,你很高兴.


Vin*_*tit 0

您是否尝试过更改 URL 存根?