|
hello,
I'm trying to use RewriteRule to turn this:
ht1p://site.com/api/1.0/transload.xml?additional_params
where additional_params is optional stuff like:
url=http://google.com/logo.gif&overwrite=true&async=true
so the full url would be:
ht1p://site.com/api/1.0/transload.xml?url=http://google.com/logo.gif&overwrite=true&async=true
rewritten as:
ht1p://site.com/api.php?version=1.0&method=transload&responseType= xml&url=http://google.com/logo.gif&overwrite=true&async=true
my .htaccess:
RewriteEngine On
RewriteRule ^api/(.*)/(transload|upload)\.(xml|json)\?(.*)$ api.php?v=$1&method=$2&responseType=$3&$4 [L]
i'm having a problem with the question mark after the (xml|json) as none of the parameters are passed through the rewrite..
any help would be greatly appreciated
Last edited by DoQrs : 11-01-2007 at 12:39 AM.
|