# \cge_redirect

A utility class to handle some advanced redirections

## Summary

Methods
Properties
Constants
redirect_abs301()
redirect301()
redirect404()
redirect_https()
redirect_http()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
final

File
  lib/class.cge_redirect.php
Package
  \CGExtensions
Class hierarchy
  \cge_redirect

## Tags

todo |

## Methods

### redirect_abs301()

    redirect_abs301(string $url)

Perform a 301 (moved permanently) redirect to the specified absolute URL

#### Parameters

string | $url |

#

static

## Tags

todo |

### redirect301()

    redirect301(string $page_alias)

Perform a 301 (moved permanently) redirect to the specified page alias

#### Parameters

string | $page_alias |

#

static

## Tags

todo |

### redirect404()

    redirect404()

Do a 404 redirect.

This is useful when requesting a detail page that cannot be displayed.

#

static

## Tags

todo |

### redirect_https()

    redirect_https(string $url)

Redirect to the same URL but substitute the ssl url.

If the url is not specified the current url is used.

#### Parameters

string | $url |

#

static

## Tags

todo |

### redirect_http()

    redirect_http(string $url, bool $force)

Redirect to the same URL but substitute the http url with the https url If the URL is not specified the current url is used.

#### Parameters

string | $url |
bool | $force | Absolutely force the url to be https.

#

static

## Tags

todo |

### class.cge_redirect.php