diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-07 12:26:59 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-07 12:26:59 +0000 |
commit | a6674e225b3d5d8b9ee15f8d503d49c1a6cbb56e (patch) | |
tree | f383c47720ac5a617cda8704167305111eda2424 /.htaccess | |
parent | 7db4e8b7c9dfaa1c0b9dade0ffb95c2125dc974a (diff) | |
download | brdo-a6674e225b3d5d8b9ee15f8d503d49c1a6cbb56e.tar.gz brdo-a6674e225b3d5d8b9ee15f8d503d49c1a6cbb56e.tar.bz2 |
#118569 by bevan: document how should one set RewriteBase, if under a VirtualDocumentRoot
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -56,8 +56,10 @@ DirectoryIndex index.php <IfModule mod_expires.c> # Enable expirations. ExpiresActive On + # Cache all files for 2 weeks after access (A). ExpiresDefault A1209600 + # Do not cache dynamically generated pages. ExpiresByType text/html A1 </IfModule> @@ -78,13 +80,19 @@ DirectoryIndex index.php # # To redirect all users to access the site WITHOUT the 'www.' prefix, # (http://www.example.com/... will be redirected to http://example.com/...) - # adapt and uncomment the following: + # uncomment and adapt the following: # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301] - # Modify the RewriteBase if you are using Drupal in a subdirectory and - # the rewrite rules are not working properly. - #RewriteBase /drupal + # Modify the RewriteBase if you are using Drupal in a subdirectory or in a + # VirtualDocumentRoot and the rewrite rules are not working properly. + # For example if your site is at http://example.com/drupal uncomment and + # modify the following line: + # RewriteBase /drupal + # + # If your site is running in a VirtualDocumentRoot at http://example.com/, + # uncomment the following line: + # RewriteBase / # Rewrite URLs of the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f |