webmaster@1: # webmaster@1: # Apache/PHP/Drupal settings: webmaster@1: # webmaster@1: webmaster@1: # Protect files and directories from prying eyes. webmaster@1: webmaster@1: Order allow,deny webmaster@1: webmaster@1: webmaster@1: # Don't show directory listings for URLs which map to a directory. webmaster@1: Options -Indexes webmaster@1: webmaster@1: # Follow symbolic links in this directory. webmaster@1: Options +FollowSymLinks webmaster@1: webmaster@7: # Make Drupal handle any 404 errors. webmaster@1: ErrorDocument 404 /index.php webmaster@1: webmaster@7: # Force simple error message for requests for non-existent favicon.ico. webmaster@7: webmaster@7: ErrorDocument 404 "The requested file favicon.ico was not found. webmaster@7: webmaster@7: webmaster@1: # Set the default handler. webmaster@1: DirectoryIndex index.php webmaster@1: webmaster@1: # Override PHP settings. More in sites/default/settings.php webmaster@1: # but the following cannot be changed at runtime. webmaster@1: webmaster@1: # PHP 4, Apache 1. webmaster@1: webmaster@1: php_value magic_quotes_gpc 0 webmaster@1: php_value register_globals 0 webmaster@1: php_value session.auto_start 0 webmaster@1: php_value mbstring.http_input pass webmaster@1: php_value mbstring.http_output pass webmaster@1: php_value mbstring.encoding_translation 0 webmaster@1: webmaster@1: webmaster@1: # PHP 4, Apache 2. webmaster@1: webmaster@1: php_value magic_quotes_gpc 0 webmaster@1: php_value register_globals 0 webmaster@1: php_value session.auto_start 0 webmaster@1: php_value mbstring.http_input pass webmaster@1: php_value mbstring.http_output pass webmaster@1: php_value mbstring.encoding_translation 0 webmaster@1: webmaster@1: webmaster@1: # PHP 5, Apache 1 and 2. webmaster@1: webmaster@1: php_value magic_quotes_gpc 0 webmaster@1: php_value register_globals 0 webmaster@1: php_value session.auto_start 0 webmaster@1: php_value mbstring.http_input pass webmaster@1: php_value mbstring.http_output pass webmaster@1: php_value mbstring.encoding_translation 0 webmaster@1: webmaster@1: webmaster@1: # Requires mod_expires to be enabled. webmaster@1: webmaster@1: # Enable expirations. webmaster@1: ExpiresActive On webmaster@1: webmaster@1: # Cache all files for 2 weeks after access (A). webmaster@1: ExpiresDefault A1209600 webmaster@1: webmaster@1: # Do not cache dynamically generated pages. webmaster@1: ExpiresByType text/html A1 webmaster@1: webmaster@1: webmaster@1: # Various rewrite rules. webmaster@1: webmaster@1: RewriteEngine on webmaster@1: webmaster@1: # If your site can be accessed both with and without the 'www.' prefix, you webmaster@1: # can use one of the following settings to redirect users to your preferred webmaster@1: # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option: webmaster@1: # webmaster@1: # To redirect all users to access the site WITH the 'www.' prefix, webmaster@1: # (http://example.com/... will be redirected to http://www.example.com/...) webmaster@1: # adapt and uncomment the following: webmaster@1: # RewriteCond %{HTTP_HOST} ^example\.com$ [NC] webmaster@1: # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] webmaster@1: # webmaster@1: # To redirect all users to access the site WITHOUT the 'www.' prefix, webmaster@1: # (http://www.example.com/... will be redirected to http://example.com/...) webmaster@1: # uncomment and adapt the following: webmaster@1: # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] webmaster@1: # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301] webmaster@1: webmaster@1: # Modify the RewriteBase if you are using Drupal in a subdirectory or in a webmaster@1: # VirtualDocumentRoot and the rewrite rules are not working properly. webmaster@1: # For example if your site is at http://example.com/drupal uncomment and webmaster@1: # modify the following line: webmaster@1: # RewriteBase /drupal webmaster@1: # webmaster@1: # If your site is running in a VirtualDocumentRoot at http://example.com/, webmaster@1: # uncomment the following line: webmaster@1: # RewriteBase / webmaster@1: webmaster@7: # Rewrite URLs of the form 'x' to the form 'index.php?q=x'. webmaster@1: RewriteCond %{REQUEST_FILENAME} !-f webmaster@1: RewriteCond %{REQUEST_FILENAME} !-d webmaster@7: RewriteCond %{REQUEST_URI} !=/favicon.ico webmaster@1: RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] webmaster@1: webmaster@1: webmaster@7: # $Id: .htaccess,v 1.90.2.1 2008/07/08 09:33:14 goba Exp $