[thelist] I KNOW Apache can do this???

Ben Vigil news at abelware.com
Sun Aug 20 22:09:40 CDT 2000


I have been experimenting with RewriteRule using Apache mod_rewrite
(http://www.apache.org/docs/misc/rewriteguide.html and
http://www.apache.org/docs/mod/mod_rewrite.html) but I can seem to get it to
do what I want.

Let's say the user requests:

    http://www.abc.com/msgs/show/123456

I want the server to execute:

    http://www.abc.com/msgs/index.cgi?p1=show&p2=123456
    or
    http://www.abc.com/msgs/index.cgi?/show/123456
    or
    http://www.abc.com/msgs/index.cgi/show/123456

Basically, I want to force any and all requests below the /msgs dir to a
script. I tried this so far in /msgs/.htaccess dir:
-----------------
RewriteEngine on
Option FollowSymLinks
RewriteBase  /msgs/
RewriteRule  ^(.+)/(.+)/$   index.cgi?action=$1&param=$2
-----------------

Any ideas?
____________________________________________________________
Ben






More information about the thelist mailing list