robotr/mvcDemo/master/public/.htaccess
# set php.options
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors on
php_value error_reporting 30719
# set environment for runmode
SetEnv APPLICATION_ENV "local"
Options -Indexes
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [NC,L]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
On Github License
Files
Download PDF of Htaccess file