Reputation: 133
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
and then the original site is opened. I want some thing similar.
Upvotes: 0
Views: 196
Reputation: 522461
/redirect.php?url=http%3A%2F%2Fexample.com
. Make sure to urlencode
the original domain name.In redirect.php
, redirect the user:
header('Location: ' . $_GET['url']);
Upvotes: 3