- #47711: Better PHP5 htaccess compatibility
parent
a0454264af
commit
b4933bcd30
15
.htaccess
15
.htaccess
|
@ -18,21 +18,30 @@ ErrorDocument 404 /index.php
|
||||||
# Set the default handler.
|
# Set the default handler.
|
||||||
DirectoryIndex index.php
|
DirectoryIndex index.php
|
||||||
|
|
||||||
# Override PHP settings. More exist in sites/default/settings.php, but
|
# Override PHP settings. More in sites/default/settings.php
|
||||||
# the following cannot be changed at runtime. The first IfModule is
|
# but the following cannot be changed at runtime.
|
||||||
# for Apache 1.3, the second for Apache 2.
|
|
||||||
|
# PHP 4, Apache 1
|
||||||
<IfModule mod_php4.c>
|
<IfModule mod_php4.c>
|
||||||
php_value magic_quotes_gpc 0
|
php_value magic_quotes_gpc 0
|
||||||
php_value register_globals 0
|
php_value register_globals 0
|
||||||
php_value session.auto_start 0
|
php_value session.auto_start 0
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
# PHP 4, Apache 2
|
||||||
<IfModule sapi_apache2.c>
|
<IfModule sapi_apache2.c>
|
||||||
php_value magic_quotes_gpc 0
|
php_value magic_quotes_gpc 0
|
||||||
php_value register_globals 0
|
php_value register_globals 0
|
||||||
php_value session.auto_start 0
|
php_value session.auto_start 0
|
||||||
</IfModule>
|
</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.
|
# Reduce the time dynamically generated pages are cache-able.
|
||||||
<IfModule mod_expires.c>
|
<IfModule mod_expires.c>
|
||||||
ExpiresByType text/html A1
|
ExpiresByType text/html A1
|
||||||
|
|
Loading…
Reference in New Issue