summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-02-08 20:42:29 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-02-08 20:42:29 +0000
commitb4933bcd30e59efff9baf4de01e879d105a4d8d3 (patch)
treee01ef1c3fd7aa60e5e733e93c8e64eea3581f0fb /.htaccess
parenta0454264af5fdd5cc669445fa697ddfbcc84fd83 (diff)
downloadbrdo-b4933bcd30e59efff9baf4de01e879d105a4d8d3.tar.gz
brdo-b4933bcd30e59efff9baf4de01e879d105a4d8d3.tar.bz2
- #47711: Better PHP5 htaccess compatibility
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess15
1 files changed, 12 insertions, 3 deletions
diff --git a/.htaccess b/.htaccess
index b1aa23e5a..cdfed3f3d 100644
--- a/.htaccess
+++ b/.htaccess
@@ -18,21 +18,30 @@ ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
-# Override PHP settings. More exist in sites/default/settings.php, but
-# the following cannot be changed at runtime. The first IfModule is
-# for Apache 1.3, the second for Apache 2.
+# 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
</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
</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
+</IfModule>
+
# Reduce the time dynamically generated pages are cache-able.
<IfModule mod_expires.c>
ExpiresByType text/html A1