redirect_canonical Wordpress function


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



(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:


Wordpress Reference URL:

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