PHP Classes

Redirection Detector: Check and retrieve the redirection URL of a page

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 511 All time: 5,763 This week: 488Up
Version License PHP version Categories
redirection-detector 1.0Free for non-comm...5.0HTML, HTTP, PHP 5
Description 

Author

This class can be used to check and retrieve the redirection URL of a page.

It can check if accessing a given page redirects the browser to another page, either via response headers or meta tags.

The class returns the redirection URL if the browser would be redirected to another page.

Innovation Award
PHP Programming Innovation award nominee
July 2010
Number 6
When a browser accesses a Web page, the server can send an HTTP header to redirect the browser to another page.

However, there are other ways to redirect a browser to another page, like for instance using HTML META tags.

This class provides a solution to detect whether the browser will be redirected to another page, by detecting both HTTP and HTML META tag redirection.

Manuel Lemos
Picture of Jaroslaw Miazga
Name: Jaroslaw Miazga <contact>
Classes: 3 packages by
Country: Poland Poland
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file detect.php Example Example of using this class
Plain text file RedirectionDetector.php Class Main class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:511
This week:0
All time:5,763
This week:488Up