Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
a6674e22
Commit
a6674e22
authored
Sep 07, 2007
by
Gábor Hojtsy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#118569
by bevan: document how should one set RewriteBase, if under a VirtualDocumentRoot
parent
7db4e8b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
.htaccess
.htaccess
+12
-4
No files found.
.htaccess
View file @
a6674e22
...
@@ -56,8 +56,10 @@ DirectoryIndex index.php
...
@@ -56,8 +56,10 @@ DirectoryIndex index.php
<
IfModule
mod_expires.c
>
<
IfModule
mod_expires.c
>
# Enable expirations.
# Enable expirations.
ExpiresActive
On
ExpiresActive
On
# Cache all files for 2 weeks after access (A).
# Cache all files for 2 weeks after access (A).
ExpiresDefault
A1209600
ExpiresDefault
A1209600
# Do not cache dynamically generated pages.
# Do not cache dynamically generated pages.
ExpiresByType
text/html A1
ExpiresByType
text/html A1
</
IfModule
>
</
IfModule
>
...
@@ -78,13 +80,19 @@ DirectoryIndex index.php
...
@@ -78,13 +80,19 @@ DirectoryIndex index.php
#
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# (http://www.example.com/... will be redirected to http://example.com/...)
#
adapt and uncommen
t the following:
#
uncomment and adap
t the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# the rewrite rules are not working properly.
# VirtualDocumentRoot and the rewrite rules are not working properly.
#RewriteBase /drupal
# 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'.
# Rewrite URLs of the form 'index.php?q=x'.
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-f
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment