Skip to content

Instantly share code, notes, and snippets.

@awd-git
Created January 21, 2013 19:57
Default .htaccess configuration for Zend Framework and probably most other frameworks or CMS that funnel everything through a single php file.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment