PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   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


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
Age: ???
All time rank: 216749 in Poland Poland
Week rank: 185 Up4 in Poland Poland Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,763
This week:488Up