I know it is really confusing. Let me explain:
I want to open the urls on my site (http://domain.com) to a (http://domain.com/url=’the submitted url’) and then the submitted url is opened.
Eg: When we open any other site link from Google+ let the example
http://www.youtube.com/watch?v=WRpX7tkwejU
it redirects to
http://plus.url.google.com/url?sa=z&n=1333340186022&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWRpX7tkwejU&usg=whZv4BO7Gcrco_vivlnhaz27Wpk.
and then the original site is opened. I want some thing similar.
/redirect.php?url=http%3A%2F%2Fexample.com. Make sure tourlencodethe original domain name.In
redirect.php, redirect the user: