November 7, 2012

How to get original URL from a specific Controller + Action

Question by Le Trung Hieu

I’ve been working on a project and everything’s fine until my partner wants to request to an original URL without rewriting.

For example:
He wants to call to

http://mydomain.com/index.php?module=default&controller=check&action=index

instead of

http://mydomain.com/default/controller/index.

Is there any way that i can make the above URL working?

Answer by Starx

Yes, in fact Rob Allen (Author of Zend Framework in Action) has written an excellent article explain just how to do this.

Zend Framework URLs without mod_rewrite

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!