I am having a few issues...
Here's my setup so that my questions have some context: I am using ColdFusion (version 6.1). I created a dummy domain via my hosts file that points to (via IIS6) c:\inetpub\wwwroot\job_posts. There is an IIRF.ini file in job_posts.
The dll is in c:\inetpub\rewrite\bin the global ini file is also located in the bin folder.
1. My rewrite rule doesn't work at all...I just get a 404 when I try to use it. When I do a status(http://localhost/job_posts/iirfstatus), it is looking for the iirf.ini file in wwwroot, not in job posts. Is there something I need to do so that
it knows to look in the job_posts folder?
2. I will be the first to admit that I royally suck at regexp. Am I doing this right? Here is my rewrite rule: (again, the physical lovcation of this is in c:\inetpub\wwwroot\job_posts\ and the domain points to this directory (ie http://www.mydomain.com/
should call c:\inetpub\wwwroot\job_posts\index.cfm)
RewriteRule ^/job_posts/([^/]+)/?([^/]*)/?([^/]*)/?([^/]*)/?([^/]*)/?([^/]*.html)$ /job_posts/index.cfm?jobname=$1&company=$2&city=$4&state=$5&country=$6&client=$7[L,QSA]
so what this should do is take http://www.mydomain.com/cook/bk/troy/mi/us/bkco and rewrite it as http://www.mydomain/index.cfm?jobname=cook&company=bk&city=troy&state=mi&client=bkco (I tried this with the rule as above and without "/job_posts/")
the fact that this doesn't work may be a config issue or a regexp issue. this doesn't work whether I have job_posts in the rule or not. I also want to get this to use dashes instead of forward slashes...am I replace the forward slash next to
the question mark or the one in the parens? I get easily confused with regexp, so please excuse the stupid noob question. Sometimes I may as well be looking at hieroglyphs (which someones make more sense than regexp hehehe)
I really need to get this done asap, so any help on this will be very much appreciated.