# 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 ages 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. zemo-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]