Hi,
i am trying to map a REST like URL to a CGI script that I wrote, to pass in some params to that script. I would like to pass something like:
http://localhost:8080/service/agent/v1/couple/status/
and in the backstage I want to pass only v1 to the cgi script. Till about now I could accomplish this in my .htaccess file:
Options +FollowSymLinks
RewriteEngine On
RewriteRule service/agent/([^/.]+)/couple/status/
/cgi-bin/printparams.pl?rpt_name=$1
But I get a response like 404 Not found:
Not Found
The requested URL /webservice/rm-agent/v1/monitor/server-status/ was not found on this server.
But the example in the sticky works perfectly well. I saw the example in the sticky but according to this, I should create sub directories for the URL exactly as it appears...
If we have a variable in between the URL, how can we build a structure like the one shown in the sticky??