Zend Framework Intro: Creating Apache .htaccessTag: framework, zend, zend framework, htaccess, mod_rewrite, apache Category: PHP Frameworkpost: 08 Apr 2008 read: 2,984 Zend Framework Step By Step Tutorial - Part 4: We need route any requests to the front controller. We can use module from apache named "mod_rewrite". About this module, you can read at this post. Then, we will work with .htaccess file. This file will do routing job. Create a file named ".htaccess" within web_root. Then enter following code:
At the line 2, we can see, Apache will route all request to index.php. Simple code, isn't it? Another option, you can configure it directly in Apache's httpd.conf file. We know, it is not easy way if we don't have own server. Thus, configure in a local Apache configuration file named .htaccess is better option.
| ||
| | Give Your Opinion | Recommend |
|


