#SetEnv APPLICATION_ENV production
SetEnv APPLICATION_ENV development
# php setting
<IfModule php5_module>
# Make sure the default timezone is set
# Can also be set within application using date_default_timezone_set
# ....
# =====================================
php_value date.timezone "Asia/Shanghai"
# Default charset is utf-8 because of multi languages supportting
# ...... utf-8
# ===============================
php_value default_charset "utf-8"
# Disable magic quotes which means nothing in php6
# .........
# ===========================
php_flag magic_quotes_gpc on
# Disable automatic session start but handled by program
# e.g. Zend_Session::start()
# .. session ............... Zend_Session::start()
# =============================
php_flag session.auto_start off
# Turn off compatibility with PHP4
# To avoid the problem when dealing with objects
# .... (php4) ...............
# ======================================
php_flag zend.ze1_compatibility_mode off
# Gzip output
# Gzip ....
# =======================================
php_flag zlib.output_compression off
php_value zlib.output_compression_level 9
# Disable user agent verification to not break multiple image upload
# .......................
# ==================================
php_flag suhosin.session.cryptua off
# Output buffering
# ....
# =============================
php_value output_buffering 4096
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]