phpterryn Posted June 11, 2009 Share Posted June 11, 2009 I need help from some savvy php folks to solve this php puzzle... URL-X redirects to URL-Y. How can php be used to print "[url-X] redirects to [url-Y]". Example for clarification: 1. redirect.com/redirect.php redirects to example.com/somepage.php. 2. When giving php the url redirect.com/redirect.php as input, I want php to output "this site redirects to the url example.com/somepage.php". Appreciate your answers Link to comment https://forums.phpfreaks.com/topic/161793-advanced-redirect-question-please-help/ Share on other sites More sharing options...
ILMV Posted June 11, 2009 Share Posted June 11, 2009 Do you want this to display before or after the redirect? So on redirect.com or example.com? Link to comment https://forums.phpfreaks.com/topic/161793-advanced-redirect-question-please-help/#findComment-853677 Share on other sites More sharing options...
gijew Posted June 11, 2009 Share Posted June 11, 2009 Just use the HTML meta refresh tag for this. <meta http-equiv="refresh" content="600;url=http://example.com"> Link to comment https://forums.phpfreaks.com/topic/161793-advanced-redirect-question-please-help/#findComment-853840 Share on other sites More sharing options...
phpterryn Posted June 12, 2009 Author Share Posted June 12, 2009 Just use the HTML meta refresh tag for this. <meta http-equiv="refresh" content="600;url=http://example.com"> I am going to run this script against external sites, and not all sites have the refresh tag, at least not in the source code. Or did I get this completely wrong? Link to comment https://forums.phpfreaks.com/topic/161793-advanced-redirect-question-please-help/#findComment-854346 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.