The statement of the. htaccess file is very useful in redirection.

Source: Internet
Author: User

# 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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.