[Linux-disciples] RewriteRule

Stephen R Laniel linux-disciples@bostoncoop.net
Thu, 7 Aug 2003 21:26:24 -0400


--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Aug 07, 2003 at 09:21:45PM -0400, Ken Shan wrote:
>=20
> The question mark may mean "0 or 1" in the regular experssion syntax
> used by mod_rewrite.  There's got to be a debugging/tracing option as
> well, no?

There may be mod_rewrite debugging as well, but I took a look at the
Apache error.log; if I try to access, e.g.,

http://laniels.org/weblog?videophones

this shows up in error.log:

[Thu Aug  7 21:23:37 2003] [error] [client 192.168.1.1] File does not
exist: /var/laniels.org/weblog

So it's not even spotting the RewriteRule; it's just assuming that
'laniels.org/(.*)' is a file called $1 underneath DocumentRoot.

There could be a problem of the ScriptAlias interacting badly with the
RewriteRule; 'laniels.org/cgi-bin' is ScriptAliased to refer to
/home/slaniel/public_html/cgi-bin. Maybe the RewriteRule gets processed
before the ScriptAlias or something?

--=20
``Nothing gelds a novice father's masculinity more efficiently than
  having to publicly verbalize a litany of cute product names each
  ending in `y' or `ies' - `Huggy Furry Yummy Chewy Cuddly Potties.'''
 -Mark Leyner, _Tooth Imprints On A Corn Dog_


--n8g4imXOkfNTN/H1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/Mvw/Ha1lzVGot+YRAjirAJ0ZB6ul8OYKPJ6gSC4kcc0BFMck7QCfS1lH
8lmSZnYgQLE8y7JKYBfrUiM=
=Vd2g
-----END PGP SIGNATURE-----

--n8g4imXOkfNTN/H1--