OK so I worked it out in the end, what I did was add a new RewriteRule
to my .htaccess like this:

        RewriteCond %{QUERY_STRING} ^(.*&)?parent=http://www.google.com(&.*)?
$ [NC]
        RewriteRule ^(index\.php)?$ http://www.mydomain.com/? [R,L]

This basically strips off the query string and seems to work the way I
want.

Mike


On Jan 4, 8:50 pm, Mike Digital Egg <[email protected]> wrote:
> Hi,
>
> This is probably something simple but it's been eluding me now for a
> while, I hope I can explain this so it makes sense...
>
> We have a gadget which works fine when accessed directly via the url
> (eghttp://www.mydomain.com) however, when we view it as a gadget some
> of the functionality stops working. I have tracked the problem down to
> the parent=http://www.google.compart of the query string (see below).
> If I remove that part of the QS then it works, also if I urlencode the
> http:// part (http%3A%2F%2F)  it works as well.
>
> http://www.mydomain.com/?lang=en&country=us&.lang=en&.country=us&synd...
>
> I guess my question relating to GG code is, is there a way of making
> this part be urlencoded?
>
> If not then does anyone know of another way of doing this, I was
> thinking using mod_rewrite to urlencode the whole query string but am
> not sure where to start with that.
>
> Hope this makes sense!
>
> Cheers
>
> Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to