Appendix D. Recommended Project Structure for Zend Framework MVC
Applications

D.4.1.2. Rewriting within a .htaccess file

Below is a sample .htaccess file that utilizes mod_rewrite. It is similar to
the virtual host configuration, except that it
specifies only the rewrite rules, and the leading slash is omitted from
index.php.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]    <-------

In the example the slash is present.

Cheers
holo

Reply via email to