[wp-hackers] 404 redirect on specific url
Rafael Ehlers
rafaehlers at gmail.com
Mon May 2 18:13:26 UTC 2011
Try this:
$url = http://' .$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
wp_redirect($url);
die();
On Mon, May 2, 2011 at 2:35 PM, Christopher Ross <cross at thisismyurl.com>wrote:
> Hi all, is there a WP friendly way to get (and redirect) a specific address
> during a 404?
>
> What I have is an address that will result in a 404, it's on a subdomain
> and needs to be redirected back to the primary. I know I can do it through a
> fast php hack, but I'm curious if there is a built in method for reading the
> URL and redirecting.
>
> Thanks,
>
> c.
>
> __
>
> Christopher Ross
> Online Portfolio - http://christopherross.ca
> Personal Blog - http://thisismyurl.com
>
> Fredericton - 506.238.4661
> San Diego - 858.201.4912
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list