Skip to content
Advertisement

Change Routing in Zend Framework for SEO

I am new to Zend framework and using framework 2.0 , And I want user Friendly URL for My Site. Right Now my URL for Contact us page is http://local.example.com/application/index/contact but I want http://local.example.com/contact like this.
My Module name is Application and Controller name is IndexController (moduleApplicationsrcApplicationControllerIndexController.php) Here is my module.config file

JavaScript

Advertisement

Answer

You need to add a new Literal route in your configuration, like this:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement