Tagged Questions
0
votes
1answer
200 views
using wp_redirect to redirect to a permalink
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 ...
2
votes
1answer
286 views
Can't get rewrite rules working
Basically I want to rewrite:
/edit/test-post
to an existing page with a parameter:
/edit?e=test-post
From the examples in the Codex I created:
add_filter( ...
0
votes
1answer
149 views
Does WordPress send a 301 header message when you change permalink structures?
I have a super old blog that I upgraded from 2.0.7 to 3.1 by upgrading over multiple versions. One of my biggest concerns was losing all the link juice from my legacy URLs but they were clearly made ...
6
votes
1answer
2k views
Pretty permalinks for search results with extra query var
I'd like to know how I can rewrite a search URL that also contains an extra query var into a pretty permalink using wp_redirect and the template_redirect hook.
I have taken the code from the Nice ...