Example this link after paste on browser address bar after redirect of windows.location=
1: main link http://example.com/v?id=xxxxxxx&itag=36
after redirect show like this
2:reidrect link https://r10---sn-4wg7en7l.c.docs.google.com
how to i get 2nd link for iframe src please any one help on this
Asked
Active
Viewed 160 times
0

Syed Ali Raza Naqvi
- 43
- 7
-
Maybe this will help: http://stackoverflow.com/questions/8338151/how-do-i-get-the-final-redirected-canonical-url-of-a-website-using-php – mario.van.zadel Sep 04 '15 at 08:31
-
@mario.klump Dear how can i use it on this link please tell me about this – Syed Ali Raza Naqvi Sep 04 '15 at 08:45
1 Answers
1
You can get the url of your page with window.location.href
in javascript or get the previous page with document.referrer
In PHP you can get the current page with $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']
and the previous page with $_SERVER['HTTP_REFERER']

Emina
- 26
- 5
-
can you make it for me i'm not a developer please help to create full code – Syed Ali Raza Naqvi Sep 04 '15 at 09:28