I'm running the Perl Dancer framework following a instructions designed in Dancer::Deployment for running like a cgi-script. This enables me to show a default page for that '/' route, however i can't appear to complete anything beyond that. For instance, let us state that I wish to request something similar to http://localhost/myroute and also have that handled through the '/myroute' route handler. Wouldso would I pull this off?

I'm using apache's mod_rewrite to direct my demands. Presently, basically try the above mentioned, I finish track of a note like "The asked for URL /cgi-bin/dancer.cgimyroute wasn't available on this server." Below may be the items in my .htaccess.

<IfModule mod_rewrite.c>    
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ /cgi-bin/dancer.cgi$1 [QSA,L]
</IfModule>

I'm running Apache 2.2 on Home windows XP with Dancer 1.3030. I realize why I get the mistake message that i'm getting. Things I am searching for is a few sample code to handle the "/myroute" route and possibly a few recommendations regarding any modifications which i should make to my .htaccess file.

Here is a repost of Quentin's answer, that they left inside a comment, therefore it turns up within the system being an clarified question:

The configuration needed a / after dancer.cgi:

<IfModule mod_rewrite.c>    
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ /cgi-bin/dancer.cgi/$1 [QSA,L]
</IfModule>

(If you want this answer, please upvote Quentin. Thanks!)