\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

Methods

redirect_abs301()

redirect_abs301(string  $url) 

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

Parameters

string $url

redirect301()

redirect301(string  $page_alias) 

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

Parameters

string $page_alias

redirect404()

redirect404() 

Do a 404 redirect.

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

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

redirect_http()

redirect_http(string  $url = '', boolean  $force = false) 

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
boolean $force

Absolutely force the url to be https.