How to pass URL in URL (as GET parameter) using PHP?

前端 未结 2 729
庸人自扰
庸人自扰 2020-12-10 15:21

I\'m having some problems passing URL\'s as GET parameter. When I try to access:

http://www.linkebuy.com.br/linkebuy/parceiro?url=http%3A%2F%2Fwww.google.com

<
2条回答
  •  眼角桃花
    2020-12-10 15:28

    If you can't get rid of the restriction you can pass the url in 2 parts like this

    http://www.linkebuy.com.br/linkebuy/parceiro?protocol=http&url=www.google.com
    

    And then parse it on your code to make the full url for the redirect.

提交回复
热议问题