mort Posted January 12, 2010 Share Posted January 12, 2010 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 ? Quote Link to comment https://forums.phpfreaks.com/topic/188248-get-variables-on-an-already-mod-rewritten-url-youtube/ Share on other sites More sharing options...
lemmin Posted January 12, 2010 Share Posted January 12, 2010 Can't you change the mod_rewrite for that domain? Quote Link to comment https://forums.phpfreaks.com/topic/188248-get-variables-on-an-already-mod-rewritten-url-youtube/#findComment-993848 Share on other sites More sharing options...
mort Posted January 17, 2010 Author Share Posted January 17, 2010 yeah of course, the whole point is if you already have a mod_rewritten URL, and then add some not mod_rewritten variables onto the end it doesnt seem to accept them example 1 (the variables after the ? are ignored) http://domain.com/upload-film/projectname?status=200&id=xxxxxxxxxxx page => upload-film project => projectname 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 any ideas or have i missed something obvious? Quote Link to comment https://forums.phpfreaks.com/topic/188248-get-variables-on-an-already-mod-rewritten-url-youtube/#findComment-996729 Share on other sites More sharing options...
wildteen88 Posted January 17, 2010 Share Posted January 17, 2010 You'll want to use the QSA flag on your rewriterule Quote Link to comment https://forums.phpfreaks.com/topic/188248-get-variables-on-an-already-mod-rewritten-url-youtube/#findComment-996753 Share on other sites More sharing options...
mort Posted January 17, 2010 Author Share Posted January 17, 2010 get in! nice one dude Quote Link to comment https://forums.phpfreaks.com/topic/188248-get-variables-on-an-already-mod-rewritten-url-youtube/#findComment-996774 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.