对Drupal的default.htaccess的标准修改
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了对Drupal的default.htaccess的标准修改相关的知识,希望对你有一定的参考价值。
This is a replacement for the default php settings in Drupal's .htaccess file. Increasing the memory_limit, max_post_size etc. prevents a lot of errors, especially when using image modules.
# Override PHP settings. More in sites/default/settings.php # but the following cannot be changed at runtime. # PHP 4, Apache 1. <IfModule mod_php4.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 php_value mbstring.http_input pass php_value mbstring.http_output pass php_value mbstring.encoding_translation 0 php_value memory_limit 96M php_value post_max_size 32M php_value upload_max_filesize 32M php_value max_input_time 180 </IfModule> # PHP 4, Apache 2. <IfModule sapi_apache2.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 php_value mbstring.http_input pass php_value mbstring.http_output pass php_value mbstring.encoding_translation 0 php_value memory_limit 96M php_value post_max_size 32M php_value upload_max_filesize 32M php_value max_input_time 180 </IfModule> # PHP 5, Apache 1 and 2. <IfModule mod_php5.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 php_value mbstring.http_input pass php_value mbstring.http_output pass php_value mbstring.encoding_translation 0 php_value memory_limit 96M php_value post_max_size 32M php_value upload_max_filesize 32M php_value max_input_time 180 </IfModule>
以上是关于对Drupal的default.htaccess的标准修改的主要内容,如果未能解决你的问题,请参考以下文章