Jan 14, 2010 at 1:39 AM
Edited Jan 14, 2010 at 2:27 AM
I'll try to help.
> Is there a way to trigger the Isapi rewrite only when it encounters the dynamicpage.cfm page?
Yes, but reading further in your question, I don't think that's what you want. You want the external URL to NOT be dynamicpage.cfm . The way URL Rewriting works: the filter looks at the external URL request, and maps it to an internal
URL. If the dynamicpage.cfm is only intended to be used internally, and never exposed externally, then you cannot very well use it as input to a rule in the filter.
> I am able to get it to work with the code below BUT I had to add to the .ini to ignore all the .css/.js/.jpg/.gif and so on.
That sounds right. there is no way for the filter to know that .jpg or .css etc, is not to be rewritten, unless you tell it so.
> the page comes up but in the top left corner of the web page i see "url=Product-Name" without the quotes of course, what could be causing that?
That is an error in your dynamicpage.cfm. Maybe a debugging statement left in by accident. IIRF won't generate or modify a response in any way. The way you are using it, it only does URL mapping.
> Second Question:
You need to use capture groups to match on the particular parts. for example
RewriteRule ^/([^/]+)/([^/]+)$ /dynamicpage.cfm?A=$1&B=$2
This will match only on URL paths with exactly two segments.
> Third Question -... i am only needing it to rewrite the dynamicpage.cfm URL.
I really don't know how to answer that. The Filter applies rules based on incoming URLs, not the outgoing URLs. There is some way you must devise that distinguishes a URL that should be rewritten, from a URL that should not. That job is
yours. What you have said so far is "I only want dynamicpage.cfm to be rewritten." But this is not what you are doing. You are rewriting
FROM any URL, TO dynamicpage.cfm.
> Currently i can type this in the browser, http://www.domain.com/xxx and the rewrite shows a page similar to the dynamicpage.cfm with missing data
Yes, exactly. That is what your rule says the filter should do. If there is some xxx that should not be rewritten, you need to tell the filter what that is, and exclude it. You haven't articulated which incoming URLs should not be rewritten.
> Fourth Question - How can I tell the isapi filter to ignore my coding variables. The code is,
<link href="#application.root_path#style.css" rel="stylesheet" type="text/css" />
I don't know what that means. I don't understand the question.
> as you can see application.root_path can't be found.
No, I don't see that at all. I don't understand the question.