Change of Magento contacts page URL
How can I change Magento contacts page URL from /contacts
to contact-us.h开发者_Python百科tml
?
Thanks for any advice.
- In the Catalog menu click on URL Rewrite Management.
- Click the Add URL Rewrite button.
- Choose to add a Custom type.
- Enter "contacts" for ID Path and Target Path.
- Enter "contact-us.html" for the Request Path.
- Click the Save button.
The 'proper' way would be to create a small module similar to the below;
app/etc/modules/Organisation_Module.xml
<?xml version="1.0"?>
<config>
<modules>
<Organisation_Module>
<active>true</active>
<codePool>local</codePool>
</Organisation_Module>
</modules>
</config>
and...
app/code/local/Organisation/Module/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>
Upload your files, clear your cache and you're good to go.
Specifically must be
New Url in ID Path and Target Path. Old Url in Request Path
Have you tried changing the URL stub?
精彩评论