2 # Apache/PHP/Drupal settings:
5 # Protect files and directories from prying eyes.
6 <FilesMatch "(\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)|code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
10 # Don't show directory listings for URLs which map to a directory.
13 # Follow symbolic links in this directory.
14 Options +FollowSymLinks
16 # Customized error messages.
17 ErrorDocument 404 /index.php
19 # Set the default handler.
20 DirectoryIndex index.php
22 # Override PHP settings. More in sites/default/settings.php
23 # but the following cannot be changed at runtime.
27 php_value magic_quotes_gpc 0
28 php_value register_globals 0
29 php_value session.auto_start 0
33 <IfModule sapi_apache2.c>
34 php_value magic_quotes_gpc 0
35 php_value register_globals 0
36 php_value session.auto_start 0
39 # PHP 5, Apache 1 and 2.
41 php_value magic_quotes_gpc 0
42 php_value register_globals 0
43 php_value session.auto_start 0
46 # Requires mod_expires to be enabled.
47 <IfModule mod_expires.c>
50 # Cache all files for 2 weeks after access (A).
51 ExpiresDefault A1209600
52 # Do not cache dynamically generated pages.
53 ExpiresByType text/html A1
56 # Various rewrite rules.
57 <IfModule mod_rewrite.c>
60 # If your site can be accessed both with and without the prefix www. you
61 # can use one of the following settings to force user to use only one option:
63 # If you want the site to be accessed WITH the www. only, adapt and
64 # uncomment the following:
65 # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
66 # RewriteRule .* http://www.example.com/ [L,R=301]
68 # If you want the site to be accessed only WITHOUT the www. prefix, adapt
69 # and uncomment the following:
70 RewriteCond %{HTTP_HOST} ^www\.flowplayer\.org$ [NC]
71 RewriteRule .* http://flowplayer.org/ [L,R=301]
73 # Modify the RewriteBase if you are using Drupal in a subdirectory and
74 # the rewrite rules are not working properly.
77 # Rewrite old-style URLs of the form 'node.php?id=x'.
78 #RewriteCond %{REQUEST_FILENAME} !-f
79 #RewriteCond %{REQUEST_FILENAME} !-d
80 #RewriteCond %{QUERY_STRING} ^id=([^&]+)$
81 #RewriteRule node.php index.php?q=node/view/%1 [L]
83 # Rewrite old-style URLs of the form 'module.php?mod=x'.
84 #RewriteCond %{REQUEST_FILENAME} !-f
85 #RewriteCond %{REQUEST_FILENAME} !-d
86 #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
87 #RewriteRule module.php index.php?q=%1 [L]
89 # Rewrite current-style URLs of the form 'index.php?q=x'.
90 RewriteCond %{REQUEST_FILENAME} !-f
91 RewriteCond %{REQUEST_FILENAME} !-d
92 RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
95 Addhandler application/x-httpd-php .js .php
97 # $Id: .htaccess,v 1.81 2007/01/09 09:27:10 dries Exp $