GET variables on an already mod rewritten URL (youtube)

Discussion in 'Programming' started by poppahorse, Jan 12, 2010.

  1. #1
    Hey all

    I am using the youtube api to upload some vids for a site, it fires it off and returns to my returnurl and appends some GET data onto the end
    looks like this - http://domain.com/upload-film/projectname?status=200&id=xxxxxxxxxxx

    as I use mod_rewrite already it doesnt like the ? bcos upload-film and projectname are already GET data
    I manually change the ? to a & in the address bar and it works, however i dont think you can set that in youtube API

    so any idea how i can get it to stop being funny about the ?
     
    poppahorse, Jan 12, 2010 IP
  2. poppahorse

    poppahorse Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    anyone? here's sort of what i mean

    example 1 (the variables after the ? are ignored)

    http://domain.com/upload-film/projectname?status=200&id=xxxxxxxxxxx
    page => upload-film
    project => projectname
    Code (markup):
    example 2 (manually change the ? for a &)

    http://domain.com/upload-film/projectname&status=200&id=xxxxxxxxxxx
    page => upload-film
    project => projectname
    status => 200
    id => xxxxxxxxxxx
    Code (markup):
    any ideas or have i missed something obvious?
     
    poppahorse, Jan 17, 2010 IP
  3. poppahorse

    poppahorse Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    nevermind, needed to use the QSA flag in my htaccess rule
     
    poppahorse, Jan 17, 2010 IP