Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Protect files and directories from prying eyes.
- <FilesMatch ".(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(.php)?|xtmpl)$|^(..*|Entries.*|Repository|Root|Tag|Template)$">
- Order allow,deny
- </FilesMatch>
- # Don't show directory listings for URLs which map to a directory.
- Options -Indexes
- # Follow symbolic links in this directory.
- Options +FollowSymLinks
- # Multiviews creates problems with aliased URLs and is not needed for Drupal.
- Options -Multiviews
- # Make Drupal handle any 404 errors.
- ErrorDocument 404 /index.php
- # Force simple error message for requests for non-existent favicon.ico.
- <Files favicon.ico>
- # There is no end quote below, for compatibility with Apache 1.3.
- ErrorDocument 404 "The requested file favicon.ico was not found.
- </Files>
- # Set the default handler.
- DirectoryIndex index.php index.html index.htm
- # Override PHP settings that cannot be changed at runtime. See
- # sites/default/default.settings.php and drupal_initialize_variables() in
- # includes/bootstrap.inc for settings that can be changed at runtime.
- # PHP 5, Apache 1 and 2.
- <IfModule mod_php5.c>
- php_flag magic_quotes_gpc off
- php_flag magic_quotes_sybase off
- php_flag register_globals off
- php_flag session.auto_start off
- php_value mbstring.http_input pass
- php_value mbstring.http_output pass
- php_flag mbstring.encoding_translation off
- </IfModule>
- # Requires mod_expires to be enabled.
- <IfModule mod_expires.c>
- # Enable expirations.
- ExpiresActive On
- # Cache all files for 2 weeks after access (A).
- ExpiresDefault A1209600
- <FilesMatch .php$>
- # Do not allow PHP scripts to be cached unless they explicitly send cache
- # headers themselves. Otherwise all scripts would have to overwrite the
- # headers set by mod_expires if they want another caching behavior. This may
- # fail if an error occurs early in the bootstrap process, and it may cause
- # problems if a non-Drupal PHP file is installed in a subdirectory.
- ExpiresActive Off
- </FilesMatch>
- </IfModule>
Add Comment
Please, Sign In to add comment