Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3174996
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3174996
Commits
b4933bcd
Commit
b4933bcd
authored
19 years ago
by
Steven Wittens
Browse files
Options
Downloads
Patches
Plain Diff
-
#47711
: Better PHP5 htaccess compatibility
parent
a0454264
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.htaccess
+12
-3
12 additions, 3 deletions
.htaccess
with
12 additions
and
3 deletions
.htaccess
+
12
−
3
View file @
b4933bcd
...
@@ -18,21 +18,30 @@ ErrorDocument 404 /index.php
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment