Jump to content

Advanced Redirect Question - Please Help


phpterryn

Recommended Posts

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

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.