I'm using wp_redirect to change the URL of my 404 page:
function show_404($message = 'page not found'){
wp_redirect(home_url() . '/error/404?m=' . urlencode($message));
exit();
}
I have created a wordpress page that has a /error/ permalink. It works fine on my local WAMP environment (properly showing my themed 404 page when navigating to localhost/wordpress/pageThatDNE), but when I test it to a real server, I get a The requested URL /error/404 was not found on this server. message. Navigating to mysite.com/error/ gives me a You don't have permission to access /error/ on this server. message. My other pages/permalinks work fine.
Any ideas how to resolve this?
