From: Joshua Slive The rewrite engine may be used in .htaccess files. To enable the
+rewrite engine for these files you need to set
+" When using the rewrite engine in There is one exception: If a substitution string
- starts with ``$N
in the substitution string!
-RewriteEngine On
'' in these files
- and ``Options
- FollowSymLinks
'' must be enabled. If your
- administrator has disabled override of
- FollowSymLinks
for a user's directory, then
- you cannot use the rewrite engine. This restriction is
- required for security reasons.
-RewriteEngine On
" and
+"Options FollowSymLinks
" must be enabled. If your
+administrator has disabled override of FollowSymLinks
for
+a user's directory, then you cannot use the rewrite engine. This
+restriction is required for security reasons..htaccess
files the
per-directory prefix (which always is the same for a specific
directory) is automatically removed for the pattern matching
and automatically added after the substitution has been
-done.http://
'', then the directory
- prefix will not be added ,and an
- external redirect (or proxy throughput, if using flag
- P) is forced!http://
, then the directory prefix will
+not be added, and an external redirect (or proxy
+throughput, if using flag P) is forced. See the
+
The rewrite engine may also be used in .htaccess
+files. It is usually simpler, however, to avoid the prefix substitution
+complication by putting the rewrite rules in the main server or
+virtual host context, rather than in a
Although rewrite rules are syntactically permitted in