Cod-nes Posted November 1, 2009 Share Posted November 1, 2009 I want to do a redirection script. But when I add the destination url to the my url (redirect.php?page=DESTINATION URL), it messes up since the distination url has also variables (domain.com/index.php?act=play&game=78). How can I fix this?Additional info:the messed up url looks like this: domain.com/index.php?act=play(MISSING: &game=78)the full url looks like this: redirect.php?page=domain.com/index.php?act=play&game=78 Link to comment Share on other sites More sharing options...
justsomeguy Posted November 1, 2009 Share Posted November 1, 2009 You need to URL-encode the URL to redirect to, when you have this URL:redirect.php?page=domain.com/index.php?act=play&game=78The page variable stops at that first ampersand, it thinks that redirect.php has one variable called page and another one called game. You need to encode the ampersands and question marks in the URL to redirect to so that it doesn't see those characters as part of the variables for redirect.php. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.