pass N params to app

Oh, the strange things mod_rewrite does!

pass N params to app

Postby Guest » Tue Apr 12, 2005 9:50 am

I have the rule:

Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST}  ^domain1\.com$
RewriteCond %{REQUEST_URI} !^/(cgi-bin|icons|usage)(/.*)?/t_$
RewriteRule ^/(.*)_(.*)/(.*)_(.*)$ http://domain1\.com/cgi-bin/template.cgi?$1=$2&$3=$4


but basically what i want is to pass all params to the program.. but i am not sure how many there will be passed to each app. Is there some sort of looping mechinisim that i can use?
Guest
 

Return to Idiosyncrasies

Who is online

Users browsing this forum: No registered users and 16 guests

cron