[techtalk] mod_rewrite

Mary Gardiner linuxchix at puzzling.org
Fri Apr 20 15:58:13 EST 2001


On Fri, Apr 20, 2001 at 03:50:34PM +1000, Mary Gardiner wrote:
> Currently the config looks like:
> RewriteEngine  on
> RewriteBase    /diary/
> RewriteRule ^[^/]+/[^/]+/$ month.php?year=$1&month=$2
> RewriteRule ^[^/]+/[^/]+/[^/]+//[^/]+/$ coat.php?year=$1&month=$2&day=$3&sub=$4
> 
> and is located in the <Directory> section for the directory that is
> DocumentRoot.

Further to this:
I get the error
[Fri Apr 20 15:55:57 2001] [error] [client 192.168.0.101] Options FollowSymLinks
 or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forb
 idden: /home/mary/cvs/AnyCoat/diary/diary.php

The Directory entry is:
<Directory /home/mary/cvs/AnyCoat>

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes Includes MultiViews +ExecCGI FollowSymLinks SymLinksIfOwnerMatch
RewriteEngine  on
RewriteBase    /diary/
RewriteRule ^[^/]+/[^/]+/$ month.php?year=$1&month=$2 [R]
RewriteRule ^[^/]+/[^/]+/[^/]+/$ coat.php?year=$1&month=$2&day=$3&sub=0 [R]
RewriteRule ^[^/]+/[^/]+/[^/]+//[^/]+/$ coat.php?year=$1&month=$2&day=$3&sub=$4 [R] 

etc...

Mary.
 
-- 
Mary Gardiner
<mary at puzzling.org>
GPG Key ID: 77625870




More information about the Techtalk mailing list