Almost Magento’s default contact us form page URL is a little bit awkward as its says http://www.domain.om/contacts/.
We can change this easily by creating a small module.
Step 1:
First of all Create a file in app/etc/modules/Magtuts_Contacts.xml
<?xml version="1.0"?> <config> <modules> <Magtuts_Contacts> <active>true</active> <codePool>local</codePool> </Magtuts_Contacts> </modules> </config>
Step 2:
Create the config file in app/code/local/Magtuts/Contacts/etc/config.xml
<?xml version="1.0"?> <config> <modules> <Magtuts_Contacts> <version>0.0.1</version> </Magtuts_Contacts> </modules> <frontend> <routers> <contacts> <use>standard</use> <args> <module>Mage_Contacts</module> <frontName>contact-us</frontName> </args> </contacts> </routers> </frontend> </config>
After that you will upload all files and clear the cache. Therefore the default Magento url changed to new one. The new URL will be http://www.domain.com/contact-us/
Alternative:
This has been answered on StackOverflow, I’ll quote:
- 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” for the Request Path.
- Click the Save button.