RSS

(root)/drupal/7-mv : /.htaccess (revision 9672)

Line Revision Contents
1 50
#
2 4107
# Apache/PHP/Drupal settings:
3 50
#
4
5 4107
# Protect files and directories from prying eyes.
6 8938
<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)$">
7 6541
  Order allow,deny
8 4876
</FilesMatch>
9 1178
10 5703
# Don't show directory listings for URLs which map to a directory.
11 1178
Options -Indexes
12 5703
13
# Follow symbolic links in this directory.
14 3668
Options +FollowSymLinks
15 2749
16 8760
# Make Drupal handle any 404 errors.
17 2749
ErrorDocument 404 /index.php
18 2265
19 8760
# Force simple error message for requests for non-existent favicon.ico.
20
<Files favicon.ico>
21 9389
  # There is no end quote below, for compatibility with Apache 1.3.
22 8769
  ErrorDocument 404 "The requested file favicon.ico was not found.
23 8760
</Files>
24
25 4107
# Set the default handler.
26 4032
DirectoryIndex index.php
27 86
28 9351
# Override PHP settings that cannot be changed at runtime. See
29
# sites/default/default.settings.php and drupal_initialize_variables() in
30
# includes/bootstrap.inc for settings that can be changed at runtime.
31 5265
32 5703
# PHP 5, Apache 1 and 2.
33 5265
<IfModule mod_php5.c>
34 8990
  php_flag magic_quotes_gpc                 off
35 9532
  php_flag magic_quotes_sybase              off
36 8990
  php_flag register_globals                 off
37
  php_flag session.auto_start               off
38 6997
  php_value mbstring.http_input             pass
39
  php_value mbstring.http_output            pass
40 8990
  php_flag mbstring.encoding_translation    off
41 4107
</IfModule>
42
43 6798
# Requires mod_expires to be enabled.
44 4034
<IfModule mod_expires.c>
45 6798
  # Enable expirations.
46
  ExpiresActive On
47 7608
48 6798
  # Cache all files for 2 weeks after access (A).
49
  ExpiresDefault A1209600
50 7608
51 6798
  # Do not cache dynamically generated pages.
52 4034
  ExpiresByType text/html A1
53
</IfModule>
54
55 4107
# Various rewrite rules.
56 921
<IfModule mod_rewrite.c>
57
  RewriteEngine on
58 1971
59 7121
  # If your site can be accessed both with and without the 'www.' prefix, you
60
  # can use one of the following settings to redirect users to your preferred
61
  # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
62 5606
  #
63 7121
  # To redirect all users to access the site WITH the 'www.' prefix,
64
  # (http://example.com/... will be redirected to http://www.example.com/...)
65
  # adapt and uncomment the following:
66 6155
  # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
67 7121
  # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
68 5606
  #
69 7122
  # To redirect all users to access the site WITHOUT the 'www.' prefix,
70 7121
  # (http://www.example.com/... will be redirected to http://example.com/...)
71 7608
  # uncomment and adapt the following:
72 6155
  # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
73 7121
  # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
74 5606
75 7608
  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
76
  # VirtualDocumentRoot and the rewrite rules are not working properly.
77
  # For example if your site is at http://example.com/drupal uncomment and
78
  # modify the following line:
79
  # RewriteBase /drupal
80
  #
81 7716
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
82 7608
  # uncomment the following line:
83
  # RewriteBase /
84 2422
85 8769
  # Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
86 1891
  RewriteCond %{REQUEST_FILENAME} !-f
87
  RewriteCond %{REQUEST_FILENAME} !-d
88 8760
  RewriteCond %{REQUEST_URI} !=/favicon.ico
89 2086
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
90 1178
</IfModule>
91
92 9532
# $Id: .htaccess,v 1.99 2009/01/09 02:49:01 webchick Exp $

Loggerhead 1.17 is a web-based interface for Bazaar branches