[wp-hackers] mod_rewrite help
m at mullenweg.com
Sun Jul 19 16:17:54 UTC 2009
On 7/18/2009 10:29 PM, Mike Schinkel wrote:
> Oops, that one line should have been ($path, not $$path):
> header('Location:' . $url_paths[$path],true,301);
For extra points, use wp_redirect:
It works on IIS and Apache, and also with different PHP setups that a
regular header() call won't.
It's also more secure, the URLs are sanitized and run through KSES to
disallow header splitting attacks.
http://ma.tt | http://wordpress.org | http://automattic.com
More information about the wp-hackers