From 72e35ecc7ac7593f367a8a3b447546f5add17af4 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Mon, 26 Apr 2010 13:11:56 +0000 Subject: [PATCH] Adds another section to the 'avoiding mod_rewrite' doc. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@938031 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/rewrite/avoid.html.en | 24 ++++++++++++++++++++++-- docs/manual/rewrite/avoid.xml | 24 ++++++++++++++++++++++-- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/docs/manual/rewrite/avoid.html.en b/docs/manual/rewrite/avoid.html.en index 3ba2ed4174..3c2d21d8a7 100644 --- a/docs/manual/rewrite/avoid.html.en +++ b/docs/manual/rewrite/avoid.html.en @@ -78,7 +78,7 @@ and /one/three/four.html.

Redirect /one/ http://one.example.com/

-

To redirect http URLs to https, do the +

To redirect http URLs to https, do the following:

@@ -109,7 +109,27 @@ task in a .htaccess file instead.

top

URL Aliasing

-

Using Alias

+

The Alias directive +provides mapping from a URI to a directory - usually a directory outside +of your DocumentRoot. Although it +is possible to perform this mappint with mod_rewrite, +Alias is the preferred method, for reasons of simplicity +and performance.

+ +

Using Alias

+Alias /cats /var/www/virtualhosts/felines/htdocs +

+ +

+The use of mod_rewrite to perform this mapping may be +appropriate when you do not have access to the server configuration +files. Alias may only be used in server or virtualhost context, and not +in a .htaccess file. +

+ +

Symbolic links would be another way to accomplish the same thing, if +you have Options FollowSymLinks enabled on your +server.

top

Virtual Hosting

diff --git a/docs/manual/rewrite/avoid.xml b/docs/manual/rewrite/avoid.xml index db2bb25369..f32fbda8cf 100644 --- a/docs/manual/rewrite/avoid.xml +++ b/docs/manual/rewrite/avoid.xml @@ -87,7 +87,7 @@ and /one/three/four.html.

Redirect /one/ http://one.example.com/ -

To redirect http URLs to https, do the +

To redirect http URLs to https, do the following:

@@ -118,7 +118,27 @@ task in a .htaccess file instead.

URL Aliasing -

Using Alias

+

The Alias directive +provides mapping from a URI to a directory - usually a directory outside +of your DocumentRoot. Although it +is possible to perform this mappint with mod_rewrite, +Alias is the preferred method, for reasons of simplicity +and performance.

+ +Using Alias +Alias /cats /var/www/virtualhosts/felines/htdocs + + +

+The use of mod_rewrite to perform this mapping may be +appropriate when you do not have access to the server configuration +files. Alias may only be used in server or virtualhost context, and not +in a .htaccess file. +

+ +

Symbolic links would be another way to accomplish the same thing, if +you have Options FollowSymLinks enabled on your +server.

Virtual Hosting -- 2.40.0