[Linux-disciples] RewriteRule

Adam Kessel linux-disciples@bostoncoop.net
Thu, 7 Aug 2003 22:14:59 -0400


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

On Thu, Aug 07, 2003 at 09:00:47PM -0400, Stephen R. Laniel wrote:
> RewriteRule ^/weblog?(.*)$ /home/slaniel/cgi-bin/weblog?rightframe=3D$1
> It doesn't seem to be working, even if I vary the '/home/slaniel/...'
> part to refer to a URL rather than a Linux pathname. Any idea what I
> might be doing wrong?

Did you remember to turn "RewriteEngine on" first? (I assume you're doing
this in .htaccess). And also make sure LoadModule rewrite_module is
uncommented in httpd.conf!

Furthermore, you probably don't want that slash at the beginning of the
RewriteRule.  The Rewrite Engine is a little funny about what it gets
passed.

My rule is just:

RewriteRule ^weblog$ /adam/cgi-bin/weblog.pl

in ~/public_html/.htaccess.

Give that a try.

(also ? does mean '0 or 1')
--=20
Adam Kessel
http://bostoncoop.net/adam

--wq9mPyueHGvFACwf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/MwejdTf3ZklQ6qYRAihrAJ0aMydfL3WqwZTn+L0phpUUac+lbgCdGOsI
h1+sKmu7LoDvv649aNFi7xo=
=Cm8/
-----END PGP SIGNATURE-----

--wq9mPyueHGvFACwf--