At 22:36 01/21/2004, you wrote:
Hi Brand,

Thanks for your quick response.

>Do you have Active4D configured to process .html pages?

Yes, A4D is configured that way - see below.
>
>The other problem appears to be with the syntax of the URL you are
>redirecting too. Incorporating my comment above you may want to try to
>redirect to http://192.168.3.4:8000/4DCGI/myFolder/mypage.a4d$ID=$1 [P].
>I've changed the file extension, used a $ instead of a slash, and provided
>an ID query parameter.
>Assuming, the rule does forward the request to the above page, and Active4D
>processes it, you should be able to get the value of ID from get form
>variable("ID") or via _FORM{"ID"}.

current rules
RewriteEngine On
RewriteRule (.*)html http://192.168.3.4:8000/4DCGI$1html [P]
RewriteRule (.*)4d http://192.168.3.4:8000/4DCGI$14d [P]
RewriteRule (.*)([0-9]+) http://192.168.3.4:8000/4DCGI/Buying/
detail.html$ListID=$1 [P]

As you can see I tried your suggestion but unfortunately it didn't work.
But I think I know what it could be.

In the first two rules everything  represented by "(.*)" goes into $1 and
will be rewritten.

Question is now: How can I pass everything after "(.*)" in a query parameter?

If you look at your third rule ([0-9]+) would match any sequence of numbers and should go into $2. The parens in the regular expresssion in the rewrite rule define replacement patterns. Recalling your original post, this is the ID you want to pass to Active4D, right? Also if apache is running on a different server than Active4D the contents of $1 is probably the apache server's host.


Also make sure the replacement patterns don't start at $0.

Do you have anyway to trace the rewrite (or dump it to a log) to see what it is doing? You might find more knowledgable help on an Apache mailing list or discussion forum.

best,

Brad





Reply via email to