Redirection when URL is different from permalink
If wordpress is able to find the proper post/page, but the url used to reach it is different, than the one wordpress generates, then it should issue af 301 to avoid duplicate contents on search engines.
If wordpress is unable to find the proper post/page, then it should issue a 404 instead of just displaying a 200 saying "Sorry, no posts matched your criteria".
Should consider giving the search result page the meta noindex tag.
Accomplished via a plugin: http://fucoder.com/code/permalink-redirect/
Wouldn't mind it being in the core as long as I have the option to skip the redirect on certain pages (via a hook or filter).
I'm not exactly sure what snakefoot is looking for. How can WordPress find a post/page at a different URL? If he is talking about the ?p=nnn then YES, I agree. If something else, I might disagree (and maybe strongly.)
Yes I mean the difference between the slug and the ?-edition. But one can also create two url's to a page this way:
Since the second doesn't exist, then it should either perform a permanent redirect or generate a 404. Same can be done by accessing a post through the post-id or through the slug.
Like Viper007Bond said there exist a plugin (though the one he give doesn't work for IIS, so I created my own plugin for IIS). But it is merely patching of the wp_rewrite_rules, which are very greedy and accept almost any URL as valid.
Would be better if the wp_rewrite_rules were strict. Then a plugin could be used to generate a smart 404 which could display the pages that match the tokens in the url, and maybe also use the search token if the visit came from a search engine.
RSS feed for this topic
This topic has been closed to new replies.