2 # Apache/PHP/Drupal settings:
5 # Protect files and directories from prying eyes.
6 <FilesMatch "\.(engine|inc|info|install|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
10 # Don't show directory listings for URLs which map to a directory.
13 # Follow symbolic links in this directory.
14 Options +FollowSymLinks
16 # Make Drupal handle any 404 errors.
17 ErrorDocument 404 /index.php
19 # Force simple error message for requests for non-existent favicon.ico.
21 # There is no end quote below, for compatibility with Apache 1.3.
22 ErrorDocument 404 "The requested file favicon.ico was not found.
25 # Set the default handler.
26 DirectoryIndex index.php
28 # Override PHP settings. More in sites/default/settings.php
29 # but the following cannot be changed at runtime.
33 php_value magic_quotes_gpc 0
34 php_value register_globals 0
35 php_value session.auto_start 0
36 php_value mbstring.http_input pass
37 php_value mbstring.http_output pass
38 php_value mbstring.encoding_translation 0
42 <IfModule sapi_apache2.c>
43 php_value magic_quotes_gpc 0
44 php_value register_globals 0
45 php_value session.auto_start 0
46 php_value mbstring.http_input pass
47 php_value mbstring.http_output pass
48 php_value mbstring.encoding_translation 0
51 # PHP 5, Apache 1 and 2.
53 php_value magic_quotes_gpc 0
54 php_value register_globals 0
55 php_value session.auto_start 0
56 php_value mbstring.http_input pass
57 php_value mbstring.http_output pass
58 php_value mbstring.encoding_translation 0
61 # Requires mod_expires to be enabled.
62 <IfModule mod_expires.c>
66 # Cache all files for 2 weeks after access (A).
67 ExpiresDefault A1209600
69 # Do not cache dynamically generated pages.
70 ExpiresByType text/html A1
73 # Various rewrite rules.
74 <IfModule mod_rewrite.c>
77 # If your site can be accessed both with and without the 'www.' prefix, you
78 # can use one of the following settings to redirect users to your preferred
79 # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
81 # To redirect all users to access the site WITH the 'www.' prefix,
82 # (http://example.com/... will be redirected to http://www.example.com/...)
83 # adapt and uncomment the following:
84 # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
85 # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
87 # To redirect all users to access the site WITHOUT the 'www.' prefix,
88 # (http://www.example.com/... will be redirected to http://example.com/...)
89 # uncomment and adapt the following:
90 # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
91 # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
93 # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
94 # VirtualDocumentRoot and the rewrite rules are not working properly.
95 # For example if your site is at http://example.com/drupal uncomment and
96 # modify the following line:
99 # If your site is running in a VirtualDocumentRoot at http://example.com/,
100 # uncomment the following line:
103 # Rewrite URLs of the form 'x' to the form 'index.php?x=x'.
104 RewriteCond %{REQUEST_FILENAME} !-f
105 RewriteCond %{REQUEST_FILENAME} !-d
106 RewriteCond %{REQUEST_URI} !=/favicon.ico
107 RewriteRule ^(.*)$ index.php?x=$1 [L,QSA]
110 # $Id: .htaccess,v 1.90.2.3 2008/12/10 20:04:08 goba Exp $