redirect_canonical Wordpress function


Description:

Redirects incoming links to the proper URL based on the site url.


Syntax:


Arguments:

(string) $requested_url Optional. The URL that was requested, used to figure if redirect is needed.
(bool) $do_redirect Optional. Redirect to the new URL.


Return Type:

(null|false|string) Null, if redirect not needed. False, if redirect not needed or the string of the URL


Define At:

wp-includes/canonical.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/redirect_canonical


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×