Jump to content

Page Problems


Cod-nes
 Share

Recommended Posts

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

Edited by Cod-nes
Link to comment
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...