对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.
  1. # Override PHP settings. More in sites/default/settings.php
  2. # but the following cannot be changed at runtime.
  3.  
  4. # PHP 4, Apache 1.
  5. <IfModule mod_php4.c>
  6. php_value magic_quotes_gpc 0
  7. php_value register_globals 0
  8. php_value session.auto_start 0
  9. php_value mbstring.http_input pass
  10. php_value mbstring.http_output pass
  11. php_value mbstring.encoding_translation 0
  12. php_value memory_limit 96M
  13. php_value post_max_size 32M
  14. php_value upload_max_filesize 32M
  15. php_value max_input_time 180
  16. </IfModule>
  17.  
  18. # PHP 4, Apache 2.
  19. <IfModule sapi_apache2.c>
  20. php_value magic_quotes_gpc 0
  21. php_value register_globals 0
  22. php_value session.auto_start 0
  23. php_value mbstring.http_input pass
  24. php_value mbstring.http_output pass
  25. php_value mbstring.encoding_translation 0
  26. php_value memory_limit 96M
  27. php_value post_max_size 32M
  28. php_value upload_max_filesize 32M
  29. php_value max_input_time 180
  30. </IfModule>
  31.  
  32. # PHP 5, Apache 1 and 2.
  33. <IfModule mod_php5.c>
  34. php_value magic_quotes_gpc 0
  35. php_value register_globals 0
  36. php_value session.auto_start 0
  37. php_value mbstring.http_input pass
  38. php_value mbstring.http_output pass
  39. php_value mbstring.encoding_translation 0
  40. php_value memory_limit 96M
  41. php_value post_max_size 32M
  42. php_value upload_max_filesize 32M
  43. php_value max_input_time 180
  44. </IfModule>

以上是关于对Drupal的default.htaccess的标准修改的主要内容,如果未能解决你的问题,请参考以下文章

Drupal 7 webform模块对webform的解释

Drupal 7:如何在引用实体的最近日期对节点进行排序?

如何在 drupal 6 中对工作流状态进行批量操作?

Drupal 6:在 tpl.php 中对多个值进行分组

使用多个选项按字段对 Drupal 视图进行分组 - 仅显示一个字段

使Drupal块对整个站点部分可见,但对特定的子部分或页面不可见