- 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?